Promptles
Testing & Quality

Test Coverage

intermediate

Definition

A measurement of how much of an app's code is actually exercised by its tests. High coverage doesn't prove the code is correct, but very low coverage is a warning sign. It means big stretches of the app could be quietly broken without anyone finding out.

In the wild

A coverage report tells the team that 90% of the checkout code is touched by tests, but only 20% of the refund code is. They take that as a hint: the refund flow is the next thing they should add tests around, because right now nobody really knows whether it works.

More from Testing & Quality