Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clearing coverage highlighting in Eclipse

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 were covered by tests.

How can I clear this highlighting after I'm done?

like image 734
Charbel Avatar asked May 24 '11 15:05

Charbel


People also ask

How do I remove code coverage?

To disable code coverage highlightingIn the IDEA IDE, on the Analyze menu, click Show Code Coverage Data, or use the Ctrl+Alt+F6 keyboard shortcut. In the Code Coverage Suites dialog, choose No coverage.

What does coverage mean in Eclipse?

Eclipse can check your code coverage when it runs your JUnit testing class. This means that it can show you what statements were executed in at least one test case and what ones weren't. For an if-statement, it will tell you whether there was a test case for the condition to be false and another for it to be true.


1 Answers

Click the "Remove all Sessions" button in the toolbar of the "Coverage" view.

enter image description here

like image 151
Kai Avatar answered Sep 28 '22 02:09

Kai