Test strategy
The test strategy is split by topic into the notes below.
- Rules and CI runs - The rules of muffelblog this project follows, which pushes run the full suite, unit tests first, and the property tests of the migrations.
- Kinds of tests in this project - The kinds of tests in a table: where each lives and what it proves.
- E2E tests - Playwright E2E tests: the acceptance criteria of a pull request, seeding, mails, accessibility, one spec per feature and tests that own their data.
- E2E inventory - The E2E tests of #68 and what they cover.
- Tests of components - The contract tests per component, the rows of the resources page, and Svelte components and state modules in Vitest.
- Reference tests of the Svelte views - The property and reference tests of the views converted in #118, list by list and bundle by bundle.
- No catalog key outside src/features - The test that finds a comparison with a catalog key outside src/features and what it scans.
- Tests of missions - Contract tests of the missions as strategies (#116).
Mutation tests
Section titled “Mutation tests”- Mutation tests and shards - Stryker mutation tests, the score that blocks, static mutants, the sharded runs, stable shards and their weights.
- Mutation runs of a pull request - A pull request mutates only what it changes: when the jobs start, the partial run, its floors and limit, and the nightly issue.
- Test files and the takeover of a mutation run - Which files start the mutation jobs, and when a pull request takes over the green run of the head before.
- Proofs of a push run - When a push to main or a hotfix branch skips a job that succeeded on the identical tree, and how the CI Gate checks the proof.
- Display texts are not mutation-tested - Why the display texts are left out of the mutation tests and how they are tested instead.
- Code of the sharded mutation runs - The scripts and jobs of the sharded mutation runs (#131): plan, gate, caches, tolerance and the previous plan.
- Code of the changed-file and reuse runs - The scripts that choose what a pull request mutates and reuse a green run, with the measured proof runs and the text module.
- Quality gates - Mutation standard per file, coverage, ESLint complexity, the ReDoS lint and code hygiene that block in the CI.
- Workflow lint - The job that checks the workflows and the tests of the shell of the release detection.
- Security gates - gitleaks, pnpm audit and the other security gates, and what to do with a finding that is no secret.
- Append-only migrations and the size ratchet - The job that keeps migrations append-only and the ratchet that keeps src/client/main.ts from growing.
- Scope of coverage and mutation, level at the introduction - Which folders coverage and mutation measure and the test level at the introduction of the strategy.
- Risks - What is unverified about the CI workflows and the cost of the mutation tests.