Your tests pass. What did they never touch?
TraceCov shows which parts of your OpenAPI spec your tests never exercise:
operations, parameters, schema keywords, responses.
Website | Documentation | Live demo | Changelog
Sending POST /users with {"name": "Alice", "age": 30} covers the endpoint, but not an empty name, a negative age or a name that is too long. TraceCov tracks the JSON Schema keywords in your spec (minLength, pattern, enum, minimum, ...). For each one, the report shows whether your tests sent a value that satisfies it and a value that violates it.
# CLI
curl -sL https://cli.tracecov.sh/install/ | sh
# Python
uv pip install tracecov
# JavaScript
npm install @tracecov/coreRecord two requests to the public Petstore API (needs requests):
import requests
import tracecov
spec = requests.get("https://petstore3.swagger.io/api/v3/openapi.json").json()
coverage = tracecov.CoverageMap.from_dict(spec)
session = coverage.requests.track_session(requests.Session())
pet = {"id": 123456, "name": "fluffy", "photoUrls": [], "status": "available"}
session.post("https://petstore3.swagger.io/api/v3/pet", json=pet)
session.get("https://petstore3.swagger.io/api/v3/pet/123456")
coverage.save_report() # writes coverage.htmlYour test suite works the same way: send its requests through the tracked session. The documentation covers pytest, Schemathesis, httpx, Django, Flask, fetch, axios and Playwright.
| Dimension | What it measures |
|---|---|
| Operations | HTTP method + path combinations called |
| Parameters | Path, query, header, cookie and body values |
| Keywords | JSON Schema validation rules (minLength, pattern, ...), with valid and invalid values |
| Examples | Schema examples and defaults used |
| Responses | HTTP status codes returned |
| Response keywords | Validation rules the returned bodies exercised, and the ones they broke |
| Community | Professional | |
|---|---|---|
| Every coverage dimension above | yes | yes |
HTML, JSON and Markdown reports, --fail-under thresholds |
yes | yes |
Python and JavaScript libraries, CLI report |
yes | yes |
| HAR, Postman and VCR import | yes | |
| CLI proxy: coverage from a test suite in any language, no code changes | yes | |
| Coverage labels: which test covers each part of the API | yes | |
| Suggested requests for the keywords your tests missed | yes | |
| MCP server for coding agents | yes |
Community is free for internal use, commercial included, under the TraceCov Community License. For Professional, write to info@tracecov.sh. Full comparison: Community vs Professional.
| You have | Go to |
|---|---|
| A crash, a wrong coverage number, a spec TraceCov rejects | Open an issue |
| A question, an idea, something to show | Discussions |
| A security problem | SECURITY.md |
| Interest in Professional | info@tracecov.sh |
This repository holds TraceCov's releases, changelog and issue tracker. The source code is not public.
