Apply Test Behavior Not Implementation

Use when writing, reviewing, or deciding whether to keep a test — assert only what the code's users can observe (return values, errors, readable state, effects on outside systems), never internal call order or intermediate data, and judge each test with two mutations — breaking real behavior should fail it, changing only internals should not — because a test failing either check proves nothing or is pinned to implementation it shouldn't care about.

jeffreytse Updated
grimoire

File contents

jeffreytse/grimoire-core commit 68a2255dd8

Frequently asked questions

npx get-skill add jeffreytse/apply-test-behavior-not-implementation