Nice programing

Clear code coverage information in Intellij

nicepro 2020. 9. 25. 23:33
반응형

Clear code coverage information in Intellij


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

At time 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?

Thanks


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


enter image description here

You can just Right Click on your Project,

Goto Analyze -> Hide Coverage data


  1. double shift;
  2. input hide;
  3. choose Hide Coverage data;
  4. Over.

Go to View > Tool Windows > Coverage

Click on the small icon button Delete Coverage Database

Clean coverage database


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.

참고URL : https://stackoverflow.com/questions/31712361/clear-code-coverage-information-in-intellij

반응형