0

我无法使用 Python 编写的测试来衡量我的 scala 应用程序的代码覆盖率。生成报告的步骤,

  1. 编译应用激活器 -Dsbt.override.build.repos=true -Dsbt.repository.config=./repositories -Dsbt.log.noformat=true clean coverage dist

  2. 在端口 9002 上运行应用程序 cd target/universal unzip sample-app-1.0.zip cd sample-app-1.0 bin/sample-app -Dhttp.port=9002

  3. 针对这个应用程序运行 python 测试 cd /home/python-tests python ./tests/sample_tests/pkg1/

  4. lsof -t -i:9002 (杀死应用程序)

  5. 激活器 -Dsbt.override.build.repos=true -Dsbt.repository.config=./repositories -Dsbt.log.noformat=true coverageReport

有人可以帮我了解设置是否正确吗?

4

0 回答 0