1.1 KiB
1.1 KiB
Unit Test Execution
Run
- Backend, suites that need no database (run each from the repo root):
dotnet test src/SlpModularCms.Core.Tests,...Modules.Identity.Tests,...Modules.Availability.Tests,...Modules.Master.Tests,...Modules.Offerings.Tests, anddotnet test src/SlpModularCms.Api.AndreaSlopFotografie.Tests --filter "FullyQualifiedName~HostConfigurationTests". - Frontend:
cd frontend && pnpm test(Vitest, includesthemes/*.test.ts), pluspnpm lintandnpx tsc -b.
Expected (2026-11-07, local)
Core 351, Identity 57, Availability 82, Master 57, Offerings 57, ASF host configuration 5, frontend 293; 0 failures. Property-based tests (FsCheck, random seed per run) are part of Core and Identity; on failure the replay seed is printed in the message; pin the shrunk counterexample as an example test.
If a test fails
Read the failure and seed, reproduce, fix the code (not the test) unless the test is wrong, rerun several times for property tests (a failure may appear in only 1 of ~15 runs: this is how the U1 Location encoding defect was found).