OpenParable
Skip to content
← Back to skills

Test Unit Suite

Testing & Quality
test__unit_suite

Test Unit Suite is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Run unit tests for the API Service and Analyzers. Use this to verify business logic, individual components, and code analyzers.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/testing/test-unit-suite/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/test-unit-suite, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

To verify the logic, endpoints, and custom analyzers of the API Service:

  1. Run Service Unit Tests

    • Navigate to tests/ApiService/BookStore.ApiService.UnitTests.
    • Run: dotnet test
    • Purpose: Verifies handlers, validation, and domain logic.
  2. Run Analyzer Unit Tests

    • Navigate to tests/ApiService/BookStore.ApiService.Analyzers.UnitTests.
    • Run: dotnet test
    • Purpose: Verifies custom Roslyn analyzers (e.g., UUIDv7 enforcement).

// turbo 3. Both (shortcut)

  • To run both test suites in one command:
    dotnet test tests/ApiService/BookStore.ApiService.UnitTests/BookStore.ApiService.UnitTests.csproj && \
    dotnet test tests/ApiService/BookStore.ApiService.Analyzers.UnitTests/BookStore.ApiService.Analyzers.UnitTests.csproj
    
  1. 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