Agent skill
test
Write comprehensive tests for a module or feature (Priya Sharma's workflow)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/test-g-zenr-relay-api
SKILL.md
Write tests for: $ARGUMENTS
Follow Priya Sharma's testing standards:
-
Identify scope: Read the source code being tested. Understand every public method, edge case, and error path.
-
Choose test file: Use the test file mapping in project config to find the corresponding test file for the module being tested.
-
Write three-path tests for every endpoint or method:
- Success path: Valid input → expected output, verify response body not just status code
- Validation error path: Invalid input → 422 or the not-found exception
- Service/device error path: External resource unavailable → 503 or the connection error exception
-
Test conventions:
- Class names:
Test<Feature> - Method names:
test_<action>_<expected_outcome> - Use proper type hints on test fixtures
- Configure test HTTP client for proper error testing (no automatic error propagation)
- DI overrides (see stack concepts) with cleanup in teardown
- Audit log assertions via log capture mechanism (see stack concepts) at the correct logger level (see project config for logger name)
- No
time.sleep(), no shared mutable state, no execution order dependence
- Class names:
-
Edge cases to always consider:
- Below minimum identifier values
- Above maximum identifier values
- Invalid state values
- External resource disconnected mid-operation
- Concurrent access patterns
- Empty/null request bodies
-
Verify: Run the test command (see project config) — all tests must pass
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?