f.ald
f.ald

Reputation: 340

how to reset code coverage highlight in intelij idea

just configured Intelij-idea 2016-1 to highlight covered and non-covered lines of code (after running unit tests with coverage). so i can see the uncovered lines and just want to continue coding but the annoying colors won't go off without switching the theme (to default or Darcula) or even opening and closing the project. is there any solution with less pain?!

Upvotes: 0

Views: 2337

Answers (3)

0x SLC
0x SLC

Reputation: 165

In current versions (2019.1) it is in the Analyze menu -> hide coverage.

Upvotes: -1

Thanos
Thanos

Reputation: 340

It's really simple actually. After you run your tests with coverage, you'll probably get a new pane (named Coverage) that shows coverage statistic per package. On the left hand side of that pane there's a red X button, clicking on that will hide all Coverage related highlighting.

Upvotes: 2

emeraldjava
emeraldjava

Reputation: 11212

I suggest you check the 'Code Coverage' settings within the 'Run/Debug Configuration' for your test. It seems record details of specific packages to include/exclude from code coverage. It might be the source of your issue.

Upvotes: 0

Related Questions