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: