Prerequisites
- .NET 10 SDK
- Docker (for integration tests that need SQL Server + RabbitMQ)
Commands
# Run all testsdotnet test
# Run specific projectdotnet test tests/BitzOrcas.Unit.Testsdotnet test tests/BitzOrcas.Application.Testsdotnet test tests/BitzOrcas.Architecture.Tests
# Run with filterdotnet test --filter "FullyQualifiedName~NoteService"
# Run with detailed outputdotnet test --verbosity detailed
# Run with coveragedotnet test --collect:"XPlat Code Coverage"
# Run specific frameworkdotnet test --framework net10.0Test projects
| Project | Infrastructure needed | Typical duration |
|---|---|---|
| Unit.Tests | None | < 1s |
| Application.Tests | None | < 2s |
| Architecture.Tests | None | < 1s |
| Integration.Tests | Docker (SQL Server + RabbitMQ) | 5-30s |
| CodeGeneration.Tests | None | < 2s |
CI configuration
# GitHub Actions example- name: Run tests run: dotnet test --verbosity minimal --logger trx