Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1 KB

File metadata and controls

25 lines (19 loc) · 1 KB

Tests

Four tiers, matching the layout in AGENT.MD:

  • PoRepoLineTracker.Unit — pure logic, no I/O.
  • PoRepoLineTracker.Integration — API and storage behaviour through the ASP.NET host (Azurite via Testcontainers).
  • PoRepoLineTracker.E2EAPI — API contract testing against a running host.
  • PoRepoLineTracker.E2EUI — Playwright browser flows (mobile + desktop).

Coverage is configured in coverlet.runsettings (wired into the Unit tier only). The threshold there is evaluated only when tests run with --collect:"XPlat Code Coverage" — CI does not currently enforce it.

Authenticating in Integration/E2E: send X-Fake-User (and optionally X-Fake-Roles) and FakeAuthHandler authenticates the request. It refuses to start in Production.

Typical local commands:

dotnet test tests/PoRepoLineTracker.Unit
docker compose up -d
dotnet test tests/PoRepoLineTracker.Integration
dotnet test tests/PoRepoLineTracker.E2EAPI
dotnet test tests/PoRepoLineTracker.E2EUI