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.
我正在使用 Emma 为我的项目进行代码覆盖。在我的 JUnit 测试用例中,我正在调用一个方法,但在代码覆盖率报告中,它显示没有覆盖从 testCase 调用的该方法。
检查以下几点:
在方法中设置断点以确保它确实被调用。
你可以告诉 emma 省略一些课程。检查配置。
班级是否正确配备了仪表?