Silent misconfigured path made coverage tool report zero for an entire day
A developer spent a full day overlooking a coverage row stuck at 0/13 — and later 0/19 — because zero was the expected result for unfinished work. The root cause was a hardcoded directory path pointing outside the repository, causing the tool to scan an empty location and honestly report zero files found. The bug went unnoticed partly because two neighbouring rows were also red for legitimate reasons, masking the broken instrument among real failures. The fix required just one line to correct the path, but the deeper lesson was that a check which can only ever return zero is indistinguishable from one that is genuinely failing. The author concluded that testing discipline requires both a planted negative and a planted positive — proving a check can fail is not enough without also proving it can succeed.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in