Sebastian Isaksen N-03

NOTEBOOK N-03DATED 30 OCT 2026STATUS DRAFT FOR SEBASTIAN'S REVIEW

Test it where it will live

On a test that passed because it left out the rules that mattered.

TITLETest it where it will live
REFN-03
DATE30 OCT 2026
DRAWN BYSebastian Isaksen

A page passed every test I had. Then it went live and part of it didn't run. Nothing was wrong with the page. The live site enforces a set of security rules about what a page may load, and my test copy didn't. The tests were honest. They were run somewhere easier than the real thing.

Hardware people learn this on the bench. A board that works on a cool desk can fail in a sealed box at sixty degrees, or on a long cable, or next to a motor. So you test at the conditions it will actually see: the heat, the supply voltage, the noise. A pass anywhere gentler only tells you it works somewhere gentler.

A test environment that's missing one of production's rules will pass exactly the things production refuses.

The fix is boring. The copy I test against now serves the same headers as the live site, read from the same file, so the two can't drift apart. If I can't make the conditions match, I write down which ones differ. Then a pass means what it says, and nobody reads it as more than that.

The general rule: before you trust a green result, list what's different between where the test ran and where the work will live. Every item on that list is something the test didn't check.

Back to the notebook