Published
Coverage in TestChimp
In brief: TestChimp measures four kinds of coverage: requirement, API contract, real user behaviour (TrueCoverage) and feature flag. Each answers a different question about what your tests ran.
In TestChimp, coverage means evidence that your tests ran something that matters: a requirement, an API operation, a path real users take, or a value of a feature flag. It is not code coverage. Each coverage type compares a list of things that should be tested with what your test executions actually recorded, and shows the gaps.
The coverage types at a glance
| Coverage type | Question it answers | Signal | Where it lives |
|---|---|---|---|
| Requirement coverage | Which stories and scenarios have tests, and did those tests run and pass? | Scenario annotations on tests, plus test executions | Insights → Requirement coverage, the Test Planning Insights tab, and the release page |
| API contract coverage | Which OpenAPI operations, fields and response codes did tests exercise? | HTTP traffic captured during test runs, matched to your OpenAPI specs | APIs page (Insights card API schema coverage) |
| Real user behaviour coverage | Which paths do real users take that no test runs? | The same RUM events emitted in production and in test runs | TrueCoverage page (Insights card Real-user behaviour coverage) |
| Feature flag coverage | For each story, which values of each feature flag have tests run? | Flag evaluations reported during test runs, plus the flag catalog from your provider | Insights → Feature flag coverage, and the release page |
All four use the same execution data: the runs that @testchimp/playwright reports, scoped by environment, branch, release and time window. Requirement coverage and feature flag coverage share one lineage: story, then scenarios, then linked tests, then executions.
Requirement coverage
- Question: are the requirements you wrote down covered by tests, and are those tests passing?
- Signal: tests declare the scenarios they cover with a scenario annotation. TestChimp rolls the latest executions up to scenarios, stories and folders.
- Where: the Requirement coverage view under Insights, the Insights tab in Test Planning, and release coverage.
Start with Requirement coverage.
API contract coverage
- Question: does your test suite exercise what your API contract promises, down to fields and response codes?
- Signal: with API capture turned on, the fixture records the HTTP interactions of each test. TestChimp matches them to the operations in your OpenAPI specs.
- Where: the APIs page, with a list view per service and a detail view per operation.
Pages in this section: Overview, Setup, Observability, List view and Detail view.
Real user behaviour coverage
- Question: which journeys do real users take most, and which of them does no test run?
- Signal: your app emits the same journey events in production and in test runs, through the TestChimp RUM SDKs. Test runs carry test identity, so TestChimp can overlay test coverage on real usage.
- Where: the TrueCoverage page, plus the QA Intel view.
Pages in this section: Overview, Instrumentation, How it works and Dashboard.
Feature flag coverage
- Question: for each story, which flags matter, and which of their values (arms) has no test run?
- Signal: your app reports flag evaluations during test runs through
@testchimp/flags, and the fixture records them per test. A connected flag provider (LaunchDarkly, PostHog or Statsig) supplies the list of arms that exist, so arms nobody tested show up. - Where: the Feature flag coverage view under Insights, and a panel on the release page.
Pages in this section: Overview, How it works, Setup, Use cases and Reference.
How the types fit together
Each type catches a gap the others miss:
- A story can have a passing test (requirement coverage) that never runs the new arm of the flag behind it (feature flag coverage).
- A test can run the journey but never send an optional field the API accepts (API contract coverage).
- A suite can cover every written scenario while users spend most of their time on a path nobody wrote down (real user behaviour coverage).
Agents can read every type. /testchimp fix coverage gaps and /testchimp upkeep pick gaps from these signals and close them with tests. See Fix coverage gaps.
Related
- Requirement traceability: how tests link to scenarios.
- QA Intelligence: the insight surfaces across the app.
- Release intelligence: coverage scoped to a release.
FAQ
What does coverage mean in TestChimp?
Evidence that your tests ran something that matters: a requirement, an API operation, a path real users take, or a feature flag value. It is not code coverage.
Which coverage types does TestChimp measure?
Requirement coverage, API contract coverage, real user behaviour coverage (TrueCoverage) and feature flag coverage.
Do the coverage types use the same test runs?
Yes. All of them read the executions that @testchimp/playwright reports, scoped by environment, branch, release and time window.