Agent skill
test__unit_suite
Run unit tests for the API Service and Analyzers. Use this to verify business logic, individual components, and code analyzers.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/test-unit-suite
SKILL.md
To verify the logic, endpoints, and custom analyzers of the API Service:
-
Run Service Unit Tests
- Navigate to
tests/ApiService/BookStore.ApiService.UnitTests. - Run:
dotnet test - Purpose: Verifies handlers, validation, and domain logic.
- Navigate to
-
Run Analyzer Unit Tests
- Navigate to
tests/ApiService/BookStore.ApiService.Analyzers.UnitTests. - Run:
dotnet test - Purpose: Verifies custom Roslyn analyzers (e.g., UUIDv7 enforcement).
- Navigate to
// turbo 3. Both (shortcut)
- To run both test suites in one command:
bash
dotnet test tests/ApiService/BookStore.ApiService.UnitTests/BookStore.ApiService.UnitTests.csproj && \ dotnet test tests/ApiService/BookStore.ApiService.Analyzers.UnitTests/BookStore.ApiService.Analyzers.UnitTests.csproj
- Analyze Results
- Pass: Core logic and static analysis rules are correct.
- Fail:
- Check the specific failing test and project.
- Analyzer tests often fail if code samples in tests don't match expected diagnostics.
Related Skills
Used By:
/test__verify_feature- Runs all tests including these unit tests
Related:
/test__integration_suite- Run full integration test suite/test__verify_feature- Complete verification (build + format + all tests)
See Also:
- testing-guide - TUnit testing patterns
- ApiService.UnitTests AGENTS.md - Unit test patterns
- Analyzers.UnitTests AGENTS.md - Analyzer testing patterns
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?