Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clear code coverage information in IntelliJ

I have configured IntelliJ to paint the background of any line that has been executed at runtime to green when running in Coverage mode.

At times, I would like to just make all the files in the project revert back to their old and typical background colors, i.e, to remove all the coverage information.

Is that possible? How?

like image 847
devoured elysium Avatar asked Jul 29 '15 22:07

devoured elysium


People also ask

How do I hide coverage in IntelliJ?

Select a coverage suite IntelliJ IDEA opens the coverage results for the selected test suites. To hide the coverage results, select the checkboxes next to the necessary classes and click No Coverage.

How do I show code coverage in IntelliJ?

Coverage in the Coverage tool window If you want to reopen the Coverage tool window, select Run | Show Code Coverage Data from the main menu, or press Ctrl+Alt+F6 . The report shows the percentage of the code that has been executed or covered by tests.

Why code coverage is not showing in IntelliJ?

If the plugin is disabled, the code coverage tabs will not be visible in the run/debug configuration dialogs. Try opening Settings > Build, Execution, Deployment > Coverage and check the "Activate Coverage View" checkbox. After that run another test with Coverage.


1 Answers

just close the coverage window with "x" button:

closing window

update: for the recent IntelliJ IDEA 2018.2.x, you can hide coverage by clicking left-hand side coverage bar (the colored one, close to line numbers) and then Hide coverage link:

closing window in IDEA 2018.2.x

like image 65
Maciej Dobrowolski Avatar answered Sep 29 '22 12:09

Maciej Dobrowolski