Skip to content

Commit 2d2ec31

Browse files
committed
chore: add a blip about unit testing to the claude test-writing skill
1 parent f736706 commit 2d2ec31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.claude/commands/write-test.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Conventions and patterns for writing consensus tests. Run this skill before writ
6161
- `@pytest.mark.parametrize("name", [pytest.param(val, id="label"), ...])` with descriptive `id=` strings
6262
- Stack parametrize decorators for multiple dimensions
6363

64+
## Unit Tests (execution_testing package)
65+
66+
Plain pytest. Tests are co-located with each module under `packages/testing/src/execution_testing/` in a sibling `tests/` directory. When adding a guardrail or validation, verify the tests fail without the change and pass with it.
67+
6468
## After Writing Tests
6569

6670
After writing or modifying tests, ask the user: "Would you like me to load the `/fill-tests` skill to verify the new tests fill correctly? (This loads an additional skill into context.)" If they agree, run `/fill-tests`, fill the new tests, then inspect the generated fixture JSON to verify the fixture contents match what the test intends.

0 commit comments

Comments
 (0)