← All work
Project / Open source / Testing

Captain Obvious

A deterministic scanner for tests that can never fail, using type-checker and program-structure analysis.

Open the original ↗Captain Obvious tomato superhero logo

Finding assertions that cannot fail

Captain Obvious detects specific patterns of vacuous tests in TypeScript and Python. It uses type-checker information and program structure rather than an LLM judgment about whether a test looks useful.

The repository documents supported test frameworks, detection rules, and examples. A mechanically provable no-op assertion is distinct from a test that is merely weak or incomplete; the tool targets the former.