-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial Coverage Expansion
Discover untested routes/pages from the product repo (and optional live crawl), then generate gap-filling tests.
Deep: Tutorial 05. Prerequisites: GitHub Integration.
zyvor-qa discover --source githubScans (via COVERAGE_DISCOVERY_PATHS):
| Location | Candidates |
|---|---|
src/pages/, src/routes/, app/
|
Routes (vm.tsx → /vm) |
docs/, specs, README, CHANGELOG |
Page/doc headings |
sidebars*, Docusaurus config |
Doc IDs |
openapi*.json/yaml |
API paths |
Covered when path/slug appears in existing specs (goto, toHaveURL, or title).
zyvor-qa run --source github --expand-coverage
zyvor-qa generate --source github --expand-coverage # generate onlyWrites tests/generated/coverage-route-….spec.ts. Capped by COVERAGE_MAX_NEW_TESTS (default 10) — re-run to continue the backlog.
Always-on for GitHub/webhook runs:
ENABLE_COVERAGE_EXPANSION=trueNote: explicit --spec disables expansion unless you also pass --expand-coverage.
On PR/push webhooks (or discover --pr-number N), inventory is limited to changed files. PR comments include a Coverage section (inventory / gaps / new tests).
ENABLE_LIVE_CRAWL=true
CRAWL_MAX_PAGES=50
CRAWL_MAX_DEPTH=2BFS same-origin links from / merge into inventory. Standalone: npm run crawl.
Start: Home · Getting Started · Tutorials · Workflows · Admin · Dashboard
Tutorials: Spec→Test · NL · GitHub · Coverage · Visual · Notify · External CI · Agent CI · zyvor.dev · Specs
Build: Architecture · Config · Authoring · Structure · Multi-browser · Rust
Actions: Mission Control · Journeys · API/Auth · Probes · Schedules · Ask Zyvor · Autofix
Ship: API · Webhooks · Security · CI/CD · Deploy · Releases · Enterprise
More: Troubleshoot · FAQ · Glossary · Contributing · Demos · Docs
Guides