# Test Plan — Novus Checkout Service, release 2026.08

**Status:** SAMPLE document for a fictional service. Every name, system and defect here is invented.

## 1. Scope

In scope: cart pricing, discount stacking, tax calculation, session persistence, receipt
rendering, and the payment capture call to the fictional gateway at `payments.example.com`.

Out of scope: the catalogue service, the partner loyalty API (stubbed in every environment), and
anything behind the `@wip` tag.

## 2. Test levels

| Level | Owner | Tooling | Gate |
| --- | --- | --- | --- |
| Unit | Engineering | JUnit XML, LCOV | 80% line coverage |
| Contract | Engineering | Cucumber, JSON schema | all scenarios green |
| Integration | QA | Robot Framework | no P1 or P2 defects open |
| Performance | QA | Load generator, HAR capture | p95 under 500 ms |
| Exploratory | QA | Session notes | charter completed |

## 3. Entry criteria

1. The build is green on the default branch.
2. Coverage is at or above the gate in `coverage-gate-config.json`.
3. No test is quarantined for more than five consecutive builds.

## 4. Exit criteria

1. Every requirement in the traceability matrix has at least one passing test.
2. No open defect at severity P1 or P2.
3. The flake rate across the last twenty builds is below 2%.

## 5. Risks

| Risk | Likelihood | Impact | Mitigation |
| --- | --- | --- | --- |
| Rounding differs between the pricing service and the receipt renderer | Medium | High | Shared rounding fixture, asserted in both suites |
| Payment gateway timeouts leak into unit runs | Medium | Medium | Network calls blocked in the unit profile |
| Flaky session-expiry test masks a real regression | High | High | Quarantine after two failures, tracked as a defect |

## 6. Deliverables

- JUnit XML per suite and a merged aggregate report
- LCOV tracefile plus a Cobertura twin for the dashboard
- HAR capture of one full checkout journey
- This plan, the test-case matrix, and the traceability matrix
