Clear code coverage information in IntelliJ
JavaIntellij IdeaCode CoverageJava Problem Overview
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?
Java Solutions
Solution 1 - Java
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:
Solution 2 - Java
Solution 3 - Java
- double shift;
- input hide;
- choose Hide Coverage data;
- Over.
Solution 4 - Java
After the newer update, it seems the "Hide Coverage" option is removed from the "Analyze" section. You can find the "Hide Coverage" option in the "Run" menu
Solution 5 - Java
Go to View > Tool Windows > Coverage
Click on the small icon button Delete Coverage Database
Solution 6 - Java
To view/close code coverage results => Run the desired class with coverage, select suite to show, and open class in the editor. => On the main menu, choose Analyze | Show/remove Code Coverage Data.