Development
test-domain
Generate or run tests for a domain using the repository's established factory, unit, integration, and admin test patterns.
Mr-DooSun · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add Mr-DooSun/fastapi-agent-blueprint --skill test-domainAbout this skill
name: test-domain description: Generate or run tests for a domain using the repository's established factory, unit, integration, and admin test patterns. metadata: short-description: Generate or run domain tests
Test Domain
Default Flow Position
- Step:
verify(canonical owner).runmode is the standard post-implementaction;generatemode itself is animplement-style operation and must be followed byrunto exercise the new tests. - Routes after: self-review (
/review-architecture {name}) if layer interactions changed → completion gate (/review-pr) - Recursion guard: n/a
Procedure
- Read
docs/ai/shared/skills/test-domain.mdfor the full procedure. - Read
docs/ai/shared/test-patterns.mdfor factory patterns and test examples. - Decide whether the request is generate mode or run mode.
- In generate mode: inspect the domain, compare existing tests to required file set, generate missing ones.
- In run mode: execute the relevant pytest scope and analyze failures.
- Keep factories and test names aligned with the shared test pattern file.