/write-tests — Test Strategy
Context
- •Read
.claude/stack.ymlfor test framework and commands - •Read
.claude/project.ymlfor critical flows
Strategy (priority order)
- •Security Flows: Auth, authorization, input validation, tenant isolation
- •Money Flows: Calculations, transactions, idempotency, precision
- •Happy Path: Normal operation for each function
- •Edge Cases: Null, negative, malformed inputs, boundary values
Rules
- •Mock external dependencies — no real API calls
- •Each test is self-contained and independent
- •Test file location:
{stack.paths.tests}with pattern{stack.conventions.test_file_pattern} - •Run via:
{stack.runtime.exec_prefix} {stack.commands.test}