Testing Execution
How to run backend, frontend, contract, browser, and documentation checks locally and interpret their results.
Use this guide to execute checks and diagnose their results. For the test-layer inventory, dependencies, and CI triggers, see Testing MatrixCustom DocTesting MatrixReference tables for test scope, dependencies, local and CI execution triggers, and passing criteria.Ownerarchitecture-enabling-teamOpen doc.
Run backend tests
Run unit and architecture tests
Run the unit and architecture suites during backend iteration:
Terminal window mise run test:unitTo run one project directly, replace
<test-project>with the relevant test project indotnet test <test-project>. Backend tests use TUnit on Microsoft.Testing.Platform.Run message contract tests
Run consumer generation followed by provider verification:
Terminal window mise run test:contractsThe task runs the consumer phase before the provider phase. Do not run provider verification against stale or missing consumer contracts.
Run the backend suite
Run unit, architecture, and contract tasks together:
Terminal window mise run testFor coverage, run
mise run test:coverage.Filter a test run
Use the Microsoft.Testing.Platform tree-node filter rather than VSTest’s
--filter:Terminal window dotnet test <test-project> --treenode-filter '<filter-expression>'Replace the placeholders with the relevant test project and filter. For Pact tests, category filters look like
/*/*/*/*[Category=PactConsumer]or/*/*/*/*[Category=PactProvider]. Select a test by its test-tree path when iterating on a single case.
Frontend, browser, and documentation checks
Run Bun commands from the frontend workspace:
bun run boundariesbun run check-typesbun run lintbun run testFor browser journeys, install the Playwright browser once with bunx turbo run playwright:install, ensure the target application is already available, then run bun run e2e. The browser suite is not part of the shared pull-request test job; see Testing MatrixCustom DocTesting MatrixReference tables for test scope, dependencies, local and CI execution triggers, and passing criteria.Ownerarchitecture-enabling-teamOpen doc.
Run documentation checks from the documentation workspace:
bun run checkbun run fitnessbun run buildUnderstand results
- A passing run exits successfully with zero failed tests. Review skipped tests and ensure they were intentionally skipped.
- TUnit reports the discovered, passed, failed, and skipped test counts. Use the failed test name and assertion output to locate the first failure.
- If provider verification reports a missing or outdated contract, rerun
mise run test:contractsso consumer contracts are generated first. - CI publishes test and coverage reports as artifacts when the corresponding workflow produces them.
- No backend
.IntegrationTestsprojects currently exist. Do not treat the absence of that layer as a failed or skipped suite.
Backend unit, architecture, and message contract suites do not require Docker. Browser end-to-end checks require an available application environment; choose the appropriate test layer in Testing MatrixCustom DocTesting MatrixReference tables for test scope, dependencies, local and CI execution triggers, and passing criteria.Ownerarchitecture-enabling-teamOpen doc.
For frontend test scope and user-journey details, see Quality Gates & VerificationCustom DocQuality Gates & VerificationStatic boundary enforcement, isolated component testing, end-to-end journey validation, and production build gates acros...Ownercatalog-experience-teamOpen doc. For required pull-request checks, see Pull Request ProcessCustom DocPull Request ProcessPrepare a focused draft, satisfy automated checks and review, and merge a contribution safely.Ownerarchitecture-enabling-teamOpen doc.