EclEmma代码覆盖率忽略Junit测试 [英] EclEmma Code Coverage Ignore Junit Tests
问题描述
我发现不在我的JUnit测试中检查代码覆盖率的唯一方法是右键单击该程序包,选择Coverage as ...,然后选择配置.然后,我可以取消我的测试包.我已经尝试了每种可能的组合,以排除一般偏好/java/code coverage/exclude下的 test ,并且没有看到任何变化.我总是将测试放在与包src代码相同的包名称的单独测试源文件夹中.
The only way I have found to not check code coverage on my JUnit tests is to right click on the package, choose Coverage as..., and then choose configuration. Then I can unclick my test package. I have tried every possible combination to exclude test under the general preferences/java/code coverage/exclude and not seen any changes. I always put my tests in a separate test source folder with the same package name as my src code.
我真的必须配置每个项目以忽略我的JUnit测试吗?这似乎是多余的.为什么有人要检查测试范围?
Do I really have to configure every single project to ignore my JUnit tests? This seems redundant. Why would anyone want to check the coverage of their tests?