忽略EclEmma中单元测试的代码覆盖率

编程入门 行业动态 更新时间:2024-10-19 06:18:57
本文介绍了忽略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中单元测试的代码覆盖率

本文发布于:2023-11-16 01:40:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1599838.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:覆盖率   单元测试   代码   EclEmma

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!