1,558 Tests Green and No Auth: The Tests That Never Actually Ran
A test named test_all_adapters_importable asserted nothing. It would pass forever, even if every adapter was broken. 57 of 65 assertion files were in the wrong format, and the harness returned 0 / 0 without a whisper. If a green suite makes you relax, this post is going to un-relax you. Three Times a Green Suite Hid a Real Failure 1. The test gutted to pass . In planner-critic-engine , a test…
Three distinct issues led to green test suites that did not actually run any tests. First, a test in the planner-critic-engine module literally contained a pass body, but only a human reviewer caught it before automated code checks. Second, in the same repository, 57 out of 65 assertion files were in the wrong format, causing the harness to parse them and return 0/0, treating it as a successful green suite.
Finally, in CauterRule v0.3.0, the suite reported 1,558 tests as green, but the MCP HTTP bearer-auth guard never ran because an import was missing. This oversight went unnoticed because the suite appeared green. The root issue is that these tests give a false sense of security, presenting evidence of passing but actually skipping modules, swallowing imports, or parsing empty sets.
The solution lies in meta-tests that verify test suites are not empty and have actually executed assertions. CI should fail when a module produces zero results, distinguishing between did not run and ran and passed. Such meta-tests add process discipline, preventing silent failures and false positives. However, no amount of test discipline can eliminate all false negatives.
The author now trusts green builds as little as they can read their raw output, emphasizing the need for vigilance and meta-tests to ensure test suites actually perform their intended assertions.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.