忽略EclEmma中单元测试的代码覆盖率 [英] Ignore code coverage for unit tests in EclEmma
本文介绍了忽略EclEmma中单元测试的代码覆盖率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有配置EclEmma不能对我的单元测试进行调整,这样可以正常工作。然而,编辑仍然强调测试代码未被覆盖。我不想在单元测试中突出显示,因为它们没有检测到覆盖范围。我如何做到这一点?
I have configured EclEmma not to instrument my unit tests which works fine. However, the editor still highlights the test code as not covered. I want no highlighting in unit tests because they are not instrumented to detect coverage. How can I do this?
推荐答案
我在Preferences-> Java-> Code Coverage中这样做,并设置只有路径条目匹配选项到 src / main / java
- 似乎很好地工作。
I did this in Preferences->Java->Code Coverage and set the "Only path entries matching" option to src/main/java
- seems to work nicely.
这篇关于忽略EclEmma中单元测试的代码覆盖率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文