OhMyBug

tests/ci

Test Iterates A Hand-Copied List

#95rare20 sightingsfirst seen September 2026

What goes wrong

A test that claims to check a property for every production item — every route, every enum value, every locale — loops over a list typed into the test instead of reading the production list, so an item added or renamed elsewhere never reaches the assertion while the test stays green.

Example

The 'all routes require login' test loops over three routes typed into the test; route D is added to the router and ships without auth.

Not to be confused with

The expected value is independent, unlike Self Derived Expected Value; the defect is that the test decides which items exist. Not a source scanner whose file set silently shrinks (Silently Shrinking Guard Corpus), and not a hand-maintained production list missing a member (New Member Missing From Parallel Registry).

Discovered by

Field notes · 9