Supercov measures coverage, reviews code quality and security with Jev, and gives coding agents actionable gaps in JavaScript and seven other languages.
Working
npx supercov qualityQuality good (8.4/10) over 1 files.
1 good, 0 fair, 0 weak.
Weakest:
good src/session.js
primitive_obsession 0.60npx supercov securitySecurity: 0 of 1 files flagged, 1 clean.
No security check fired, the score is fine, and the only quality property present is primitive obsession on the checkout arguments. I’ll leave the shape alone and look at what the tests actually check.
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 — npx supercov runs run_a432adf3716c563c assertions assess
The tests pass. I’ll ask Jev which executed statements a change could break without failing a test.
npx supercov runs latest assertions assess
npx supercov runs latestCoverage Lines 100.00% (5/5) Branches 100.00% (2/2) MC/DC 50.00% (1/2) Assertions 75% (3/4 executed statements a test is judged to catch)
npx supercov runs latest assertions src/session.jsNot asserted: no test that runs them was judged to fail if they changed.
LINE STATEMENT (change) closest test
3 const total = price * quantity; (value becomes undefined) confirms an order 16%npx supercov runs latest decision src/session.js:2signedIn && !expired C1 covered: signedIn C2 MISSING: !expired
Changing the total fails no test, and no test rejects an expired session. I’ll add both checks.
tests/session.test.jsAdded the total assertion and expired-session test.npx supercov -- npm test3 tests passednpx supercov runs latest assertions assess
npx supercov runs latestCoverage Lines 100.00% (5/5) Branches 100.00% (2/2) MC/DC 100.00% (2/2) Assertions 100% (4/4 executed statements a test is judged to catch)
npx supercov diff run_a432adf3716c563c 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%, and Jev judges all 4 executed statements asserted.
Supercov gives the agent the next thing to fix.
Each run returns the quality score, security findings and the uncovered paths. The agent fixes, refactors or adds focused tests, reruns the suite, and continues while useful work remains.




