Ignore code coverage for unit tests in EclEmma

前端 未结 2 1500
花落未央
花落未央 2020-12-15 02:58

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

2条回答
  •  爱一瞬间的悲伤
    2020-12-15 03:51

    I did the following steps:

    1. Go to Preferences->Java->Code Coverage and
    2. set the "Only path entries matching" option to src/main/java

    It seems to work nicely.

提交回复
热议问题