write-tests

Exact captured content · path skills/write-tests/SKILL.md · sha256 55fb4a68fdf30439… · revision a3a39d7c2422bbb1859caf7b39d018280f77ab84

Download the exact captured file

---
name: write-tests
description: Write unit tests for a function or file following this repo's existing test style. Use when asked to add, write or improve tests.
---
1. Find two existing test files near the target and copy their structure, imports and naming.
2. Cover the normal case, edge cases (empty, null, boundaries) and one failure case.
3. Run only the new test file and fix failures caused by the test, not by changing the code under test.
4. Report what is covered and anything you could not test.