Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 Scala 上有一个多模块 Maven 项目。我想在模块A中编写一个集成测试,从该模块调用某个类的方法XXX。该方法又从另一个模块B中的某个类调用方法YYY。由于我想看到XXX和YYY的覆盖范围都不是空的。scoverage:report
scoverage:report
但是目前YYY显示为未覆盖(覆盖率为 0%)
是否可以为此进行配置scoverage?
scoverage
找到了解决方案:
mvn scoverage:package // creates classes prepared to coverage instrumentation mvn scoverage:report // creates coverage report