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?
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.
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.
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.
just close the coverage window with "x" button:
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With