Prompt file imported from BrianMF7/HackNight (
.cursor/commands/test.md). Copyright stays with the author.
Read and follow .cursor/skills/test-driven-development/SKILL.md.
Proof stays with this command. Ponytail may refuse only harness bloat: a new test dependency or a homemade framework when a small assert would do. It must not delete, skip, or weaken an assertion /build or /test added.
For new features:
- Write tests that describe the expected behavior (they should FAIL)
- Implement the code to make them pass
- Refactor while keeping tests green
For bug fixes (Prove-It pattern):
- Write a test that reproduces the bug (must FAIL)
- Confirm the test fails
- Implement the fix
- Confirm the test passes
- Run the full test suite for regressions
For browser-related issues, also follow .cursor/skills/browser-testing-with-devtools/SKILL.md to verify with the browser tools.
