Back to list
aalmada

run-unit-tests

by aalmada

Full-stack .NET online book store application with event-sourced backend API and Blazor frontend, orchestrated by Aspire.

13🍴 0📅 Jan 24, 2026

SKILL.md


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

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.

Used By:

  • /verify-feature - Runs all tests including these unit tests

Related:

  • /run-integration-tests - Run full integration test suite
  • /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

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon