skills/aiming-lab/metaclaw/test-before-ship

test-before-ship

SKILL.md

Test Before Ship

Test pyramid:

  • Unit tests for pure functions and business logic (fast, many).
  • Integration tests for service interactions and DB queries (medium).
  • End-to-end tests for critical user journeys (slow, few).

Test quality checklist:

  • Does the test actually fail when the code is broken?
  • Does it cover the happy path AND the most likely error cases?
  • Is the test name descriptive enough to diagnose a failure from the name alone?

For bug fixes: add a regression test that reproduces the bug before fixing it.

Anti-patterns:

  • Tests that only test the mock, not the real behavior.
  • Skipping tests because "it probably works".
Weekly Installs
2
GitHub Stars
1.3K
First Seen
4 days ago
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2