Clearing coverage highlighting in Eclipse

前端 未结 10 1191
滥情空心
滥情空心 2020-12-12 09:05

After running coverage reports in Eclipse (using cobertura or an EMMA plugin), my source code files get highlighted in green, red and yellow depending on which lines of code

10条回答
  •  北海茫月
    2020-12-12 09:13

    I found a workaround over on GitHub: https://github.com/jmhofer/eCobertura/issues/8

    For those who don't want to click the link, here's the text of the comment:

    Good workaround: Create a run configuration with a filter, that excludes everything ("*") and let it run just a single test. Name it "Undo coverage".

    I did this and it worked quite well in Eclipse Juno.

    Credit for this goes to UsulSK.

提交回复
热议问题