Skip to content

Software quality

Test Coverage

Metric indicating what share of a program is actually executed during a test run.

Test coverage measures what share of the source code – counted, for example, by lines, branches or functions – is run through at least once when the test suite is executed. The result is usually output as a percentage, for example by PHPUnit or Jest.

Values such as 80 percent are often circulated as a benchmark, but are convention and not a norm – they appear in no specification and do not fit every project equally well. Above all, high test coverage says nothing about whether the tests really check what they are supposed to check: code can be run through and still remain unchecked if the assertions in the test are missing or too weak.

In practice at Provimedia

What Provimedia uses it for

Provimedia watches test coverage as a rough indicator but does not rely on the number alone for the actual quality of testing.

Want to use Test Coverage for your project?

In a free conversation, let's find out how we can implement this for you.