Code Coverage
Learn about the importance of code coverage.
We'll cover the following...
Managers love numbers. The concept of code coverage, a term for how much code is unit-tested, is one that tickles the typical manager’s number fixation but ultimately leaves a bad taste when used for anything but educational purposes.
Code coverage
More specifically, code coverage is a measure of the percentage of code that our unit tests execute. We can find tools that do the dirty work of taking the measurements. Emma (which we show briefly here—it’s a free and easily installed Eclipse plugin) and Cobertura are examples of code-coverage tools.