← スキル一覧に戻る

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📅 2026年1月24日
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:
-
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:
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:
/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
スコア
総合スコア
75/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
3ヶ月以内に更新
+5
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

