Passing 680 tests proved nothing: how a hidden parser bug exposed a testing blind spot
A developer deliberately introduced a bug in tomlkit's timezone parsing — flipping negative UTC offsets to positive — and found that all 680 official conformance tests still passed. The tests failed to catch the error because the expected values were generated by the very same function being tested, meaning the parser and its expectations drifted together invisibly. The flaw only affected datetime cases; integer and string tests, which used independent expected values, caught similar breaks within seconds. To address this systemic issue, the developer packaged a practice called 'falsifiable-tests' as an AI agent skill, requiring that every test be deliberately broken before it is trusted. The same method was applied to three open-source projects, with findings reported upstream to tomlkit, tenacity, and click.
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