run-unit-tests

Run dotnet test on API Service and analyzer unit test projects.

15|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/aalmada/BookStore --skill run-unit-tests
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: run-unit-tests
Source: https://github.com/aalmada/BookStore/tree/main/.claude/skills/run-unit-tests
Command: npx skills add https://github.com/aalmada/BookStore --skill run-unit-tests

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps teams automatically verify the correctness of the API Service and its analyzers by running targeted unit tests, preventing regressions early.

Core Features & Use Cases

  • Test Coverage: Executes unit tests for API handlers, validation logic, and domain components.
  • Analyzer Validation: Runs analyzer tests to validate Roslyn-based rules and code quality checks.
  • Use Case: When making changes to API services or analyzers, run the unit tests to ensure no regressions and confirm expected diagnostics.

Quick Start

  • Navigate to the test projects: tests/ApiService/BookStore.ApiService.UnitTests and tests/ApiService/BookStore.ApiService.Analyzers.UnitTests.
  • Run: dotnet test in each project, or run both in parallel with a combined 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

Frequently Asked Questions about run-unit-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run unit tests for a dotnet API service and analyzers?

Run unit tests for a dotnet API service and analyzers by executing the `dotnet test` command against the specific UnitTests and Analyzers.UnitTests project files to validate API handlers and Roslyn-based rules.

What is the best way to validate Roslyn analyzer rules during local development?

To validate Roslyn analyzer rules during local development, run the dedicated analyzer unit tests using `dotnet test` to confirm expected diagnostics and prevent regressions in code quality checks.

Can I execute API service and analyzer tests in parallel within a CI workflow?

Yes, you can execute API service and analyzer tests in parallel within a CI workflow by chaining the `dotnet test` commands for both the UnitTests and Analyzers.UnitTests projects using the `&&` operator.

Does running unit tests for API services verify domain components and validation logic?

Yes, running unit tests for API services verifies domain components and validation logic by executing test coverage across API handlers to ensure no regressions and confirm expected outcomes.

Why run separate unit tests for analyzers and API handlers?

Running separate unit tests for analyzers and API handlers isolates verification logic, ensuring that both Roslyn-based code quality checks and API service domain components function correctly without regressions.