Clearing coverage highlighting in Eclipse

前端 未结 10 1143
滥情空心
滥情空心 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:27

    On 4.2 eclipse it seems to be impossible to remove the eCobertura highlights. Sadly eCobertura plugins seems to be not maintained anymore. However if you start writing into the class, its gone. So type a space, and then undo, and its gone.

    0 讨论(0)
  • 2020-12-12 09:31

    For those using Cobertura and only have the Coverage Session View like I do,just try closing Eclipse and starting it up again. This got rid of the highlighting for me.

    0 讨论(0)
  • 2020-12-12 09:33

    Close the IDE and open it again. This works if you did not use any code coverage tools and have just clicked the basic "Coverage" icon in the IDE.

    0 讨论(0)
  • 2020-12-12 09:34

    I have used the Open Clover Tool for the code coverage, I have also been searching this for a long time. Its pretty straightforward, in the Coverage Explorer tab, you can find three square buttons which says the code lines you wanted to display, click on hide the coverage square box and its gone. Last button in the image below:

    0 讨论(0)
提交回复
热议问题