Dev.to
7/14/2026

Testing Against State Drift: Guarding a Config Tool Whose Source of Truth Lives Somewhere Else
Short summary
A detailed testing strategy for a browser-based config tool for ESA's Pyxel detector-simulation framework, where correctness depends on an independently-versioned external project. The author identifies three drift layers — bundled schema freshness, argument bounds, and doc accuracy — and builds automated defenses at each seam where the invariant actually lives, including live schema diffs and API introspection checks in CI.
- •Three drift layers: bundled schema freshness, argument bounds, and tutorial/doc accuracy
- •Test each invariant at the seam where it lives — reach for the real external thing at test time
- •CI coverage gates make testing non-optional by blocking merges on untested files
Generated with AI, which can make mistakes.
Is this a good recommendation for you?


