Skip to content

Code Coverage Quick Reference

Current Status (2026-02-02)

Layer Coverage Trend
Domain 91.6% ✅ Excellent
Application 53.7% ⚠️ Needs Improvement
Infrastructure 11.1% ❌ Critical
Overall 30.1% ⚠️ Below Target

Top Priority Areas (0% Coverage)

Infrastructure Layer

  1. Client Management (Complete feature, 0% coverage)
  2. ClientRepository
  3. CreateClientUseCase, UpdateClientUseCase, DeleteClientUseCase
  4. GetClientQueryHandler, ListClientsQueryHandler

  5. Authentication Settings (0% coverage)

  6. AuthenticationSettingsRepository
  7. GetAuthenticationSettingsQueryHandler
  8. SetDefaultProviderUseCase, SetLocalFallbackUseCase

  9. Federation (Partial, 0% in places)

  10. CreateProviderUseCase
  11. ListProvidersQueryHandler

Application Layer

  1. Service Account Operations (0% coverage)
  2. UpdateServiceAccountUseCase
  3. DeleteServiceAccountUseCase
  4. Enable/DisableServiceAccountUseCase
  5. GetServiceAccountQueryHandler, ListServiceAccountsQueryHandler

  6. Session Management (0% coverage)

  7. CreateSessionUseCase
  8. Various query handlers

  9. Role Management (0% coverage)

  10. CreateRoleUseCase
  11. ListRolesQueryHandler, GetUserRolesQueryHandler

Quick Commands

# Generate coverage report
./scripts/coverage.sh              # Linux/macOS
./scripts/coverage.ps1             # Windows

# Run tests without coverage
dotnet test

# Run specific test project
dotnet test tests/OpenIdentityStack.Infrastructure.Tests

Goals

Timeframe Target Focus Areas
4 weeks 65% Infrastructure + Application critical paths
8 weeks 80% Complete feature coverage + edge cases
Long-term 85%+ Maintain with new features

Resources

Test Execution Status

⚠️ Note: 496 tests are currently failing due to Aspire orchestrator connection issues in E2E and API integration tests. These are infrastructure issues, not code quality problems. The failing tests don't affect coverage metrics for Domain, Application, and Infrastructure unit tests.

Working Tests: 963 passed (Domain, Application, Infrastructure unit tests)
Failing Tests: 496 (E2E and API integration tests - Aspire DCP issues)


Last Updated: 2026-02-02