Colored background highlighting in dotCover 2017.1

Right after dotCover 2016.3 introduced a new way to highlight code coverage (markers in the gutter instead of colored backgrounds), we immediately got a flurry of “Bring it back!” comments. Indeed, there is a range of tasks where the “old-style” highlighting could be more useful, e.g. when you need to quickly evaluate uncovered parts of code.

Some technological limitations prevented us from keeping the colored-background highlighting along with the new markers in 2016.3. Fortunately, now all the limitations are left behind, and dotCover 2017.1 gets the old highlighting back. And it’s even better than before!

The main improvement is that now background highlighting is able to show test results. To switch between highlighting types, use the option Highlight code coverage using in ReSharper | Options… | dotCover | Highlighting.

Here’s a short summary of how it works:

dotCover 2017.1 line background highlighting

dotCover 2017.1 markers highlighting

Finally, you can combine both highlighting styles by selecting the option Both markers and line background. Why does that make sense? Because this way, you can use one of the markers’ advantages – the ability to see and navigate to covering tests in one click.

dotCover 2017.1 markers and background highilighting

Note that if you want to get the “plain vanilla” highlighting from dotCover 2016.2 (where test results were not taken into account), simply switch off the option Use highlighting to show unit test results.

dotCover 2017.1 old highlighting

As always, we invite you to download the latest ReSharper Ultimate and try the “new old” highlighting in practice.

This entry was posted in How-To's and tagged , . Bookmark the permalink.

One Response to Colored background highlighting in dotCover 2017.1

  1. Pingback: Dew Drop - May 10, 2017 (#2476) - Morning Dew

Leave a Reply

Your email address will not be published. Required fields are marked *