Coverage lies

You will learn

Why a coverage number can be a check that checked nothing, and how to spot it.

A coverage percentage is a claim about the tests, and claims can be empty. The widget found the empty kind: 11 specs refused at parse, 0 blocked only by prose, and 23 broken on purpose as fixtures -- but elsewhere in the corpus a 'test' that is only prose passes every check while executing nothing. The tells are always the same: a number with no denominator, a pass with no assert that ran, a sweep that cannot fail. Ask of every percentage: what would make this number move?

Open the interactive lesson →