That great but pesky highlighting

The Eclemma coverage tool that comes with Eclipse is really nice — it lets you quickly see what code is being run by your tests, by coloring the code green for covered and red for not covered.  After running the coverage tool, my code looks like this:

The problem is, now all the code everywhere in my project is red or green, which is distracting!  You can cause an individual file’s coverage highlighting to go away by modifying the file… but it’s annoying to have to do that to each file you look at as you browse around your project after a coverage session.

A Better Solution

It turns out there’s a handy Remove All Sessions button on the Coverage toolbar:

Press that, and our whole project returns to a state of coverage-unhighlightitude:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.