Test meaning and evidence
The tests state and protect meaningful promises about behavior, cover invariants and unhappy paths, and give a reader enough evidence to trust a pass and diagnose a failure.
Use the descriptions below to decide which individual quality references are relevant. Open only the references that can materially affect the current decision, code, or failure.
- Tests encode behavior, not implementation trivia - Tests describe externally meaningful promises rather than internal structure that should be free to change.
- Important invariants are tested - Each important rule, guarantee, or failure mode has at least one test that would fail if the guarantee broke.
- Happy and unhappy paths are both tested - Negative cases, edge cases, and misuse paths are intentionally exercised rather than left implicit.
- Tests are readable - A reviewer can tell what behavior a test protects and why it matters.
- Test setup is cheap to understand - Creating the conditions for a test does not require navigating a maze of fixtures, mocks, or magical helpers.
- Over-mocking is avoided - Tests do not become brittle by asserting every internal interaction instead of meaningful outcomes.
- Regression evidence exists - Changed behavior is backed by tests or checks that prove the intended effect and protect against relapse.
- Manual-only verification is minimized - Important correctness claims are not left resting on ad hoc human checking when they could be mechanized.
- Evidence backs correctness claims - Assertions that something works are supported by checks, tests, logs, traces, commands, or measurable evidence.
- Test failures are diagnosable - When tests fail, the output gives enough context to understand the broken behavior without guesswork or habitual reruns.
- Test scope matches test name and intent - The name, setup, action, and assertions of a test all describe the same behavior at the same level of abstraction.