One Test One Thing

Use when writing or reviewing a unit/integration test — enforces a clear scenario-shaped name (no `_and_`), Arrange/Act/Assert structure with visible separation, and one logical behaviour per test. A failing test name should describe exactly what regressed without opening the file. Multiple scenarios become multiple tests, not one test with branches or `_and_` in the name.

amitkot 3d5a744 2.5 KB Updated

File contents

amitkot/claude-code-tools/tree/main/code-habits/skills/one-test-one-thing commit 3d5a744833

Frequently asked questions

npx skillmds@latest add amitkot/one-test-one-thing