Nov 3, 2018

Automated test code coverage

Code coverage tools can automatically tell you how much of your software's code is covered by a set of automated test cases, which are written using testing frameworks such as JUnit (for Java) and RSpec (for Ruby). 

Developers often look at what percentage of the code is covered by unit tests to gauge its quality heuristically, at least in terms of maintainability. There's debate among the development community as to the meaningfulness of a target metric for unit test code coverage, but they generally seem to agree that coverage of more than 90 percent is a good sign, and anything below that is potential cause for concern. For example, coverage of less than 75 percent may indicate a serious problem.