Skip to content
bitzorcas
EN

Concept

Overview

Testing strategy — unit tests, integration tests, architecture tests, application tests, and code generation tests with the Vertical Slice Architecture testing approach.

Last updated

BitzOrcas’s testing strategy follows the Vertical Slice approach — tests align with features/modules rather than technical layers. The project includes 5 test projects organized by testing concern.

Test projects

ProjectPurposeFramework
BitzOrcas.Unit.TestsDomain logic, value objects, Result<T>xUnit
BitzOrcas.Application.TestsMediator handlers, pipeline behaviorsxUnit
BitzOrcas.Integration.TestsFull API tests with databasexUnit + WebApplicationFactory
BitzOrcas.Architecture.TestsModule boundary, DI registration, code conventionsNetArchTest
BitzOrcas.CodeGeneration.TestsTemplate rendering, code gen accuracyxUnit

Running tests

Terminal window
# Run all tests
dotnet test
# Run specific project
dotnet test tests/BitzOrcas.Unit.Tests
# Run with coverage
dotnet test --collect:"XPlat Code Coverage"

Testing levels

LevelWhat to testProject
UnitDomain logic, value objects, Result<T>, IRequestRuleUnit.Tests
ApplicationMediator handlers, pipeline behaviors, mappingApplication.Tests
IntegrationFull API pipeline with real DBIntegration.Tests
ArchitectureModule boundaries, DI rules, naming conventionsArchitecture.Tests

See also