Supercov gives coding agents the deepest JavaScript coverage for code verification, including MC/DC and assertion coverage.
Working
Ran
npx supercov -- npm test
npx supercov runs latestCoverage Lines 100.00% (5/5) Branches 100.00% (2/2) MC/DC 50.00% (1/2) Assertions not assessed — No recorded flow explanations 0 assertions with flows; 2 without; 0 current flows; 0 stale; 0 draft
Ran
npx supercov runs latest assertions --jsonThe tests pass. I’ll trace each assertion back to the code it checks and save those links in the assertion map.
Edited
.supercov/runs/run_4283cdd65b619f9c/assertions.jsonMapped the status checks. Neither checks the calculated total.Ran
npx supercov runs latest assertions validate --json
npx supercov runs latest assertions check --require-mappings
npx supercov runs latestCoverage Lines 100.00% (5/5) Branches 100.00% (2/2) MC/DC 50.00% (1/2) Assertions 75.00% (3/4) — agent-assessed statements, whole run 2 assertions with flows; 0 without; 2 current flows; 0 stale; 0 draft
Ran
npx supercov runs latest decision src/session.js:2signedIn && !expired C1 covered: signedIn C2 MISSING: !expired
The total is never checked, and no test rejects an expired session. I’ll add both checks.
Edited
tests/session.test.jsAdded the total assertion and expired-session test.Ran
npx supercov -- npm test3 tests passedEdited
.supercov/runs/run_f155e4206a81a780/assertions.jsonReviewed the changed tests and mapped their new assertions.Ran
npx supercov runs latest assertions validate --json
npx supercov runs latest assertions check --require-mappings
npx supercov runs latestCoverage Lines 100.00% (5/5) Branches 100.00% (2/2) MC/DC 100.00% (2/2) Assertions 100.00% (4/4) — agent-assessed statements, whole run 4 assertions with flows; 0 without; 4 current flows; 0 stale; 0 draft
Ran
npx supercov diff run_4283cdd65b619f9c latestlines +0pp, branches +0pp, MC/DC +50pp + MC/DC src/session.js:2 C2 !expired
All 3 tests pass. They now check the total and reject expired sessions. MC/DC is 100%; assertion coverage reflects the statements mapped above.
Supercov gives the agent the next test to write.
Each run returns the uncovered paths. The agent adds focused tests, reruns the suite, and continues while useful gaps remain.





