Home / Market / supercov

supercov

Measure line, branch and MC/DC coverage of a project's existing tests with the supercov CLI, then write small, focused tests for the code no test reaches.

skill★ 508760 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: supercov description: "Measure line, branch and MC/DC coverage of a project's existing tests with the supercov CLI, then write small, focused tests for the code no test reaches." category: testing risk: critical source: https://github.com/supercorp-ai/supercov/tree/main/plugins/supercov/skills/supercov source_repo: supercorp-ai/supercov source_type: community date_added: "2026-10-04" author: Supercorp tags: [testing, coverage, mcdc, test-generation] tools: [claude, cursor, gemini, codex] license: MIT license_source: https://github.com/supercorp-ai/supercov/blob/main/LICENSE

---

Supercov

Overview

Supercov runs the project's own test command on the user's machine and reports line, branch and MC/DC coverage per test. It changes no source, tests or configuration. This skill uses that report to pick one untested piece of code at a time and write a focused test for it.

It works with JavaScript, TypeScript, Python, Ruby, Rust, Go, Java and Kotlin projects.

When to Use This Skill

Preconditions

How It Works

Step 1: Measure the suite

Run the full test command under Supercov. Coverage is measured locally and sends nothing over the network.

npx supercov@3.0.4 -- npm test

Step 2: Pick a target

List the untested code, pick one item, and read it in context.

npx supercov@3.0.4 runs latest gaps --limit 5
npx supercov@3.0.4 runs latest file src/session.js

Step 3: Write one focused test

Write one test for the chosen target. Change only test files unless the user asks otherwise.

Step 4: Rerun and report

Rerun the command from step 1. Report the test you added and the coverage before and after.

For anything not shown here, npx supercov@3.0.4 docs <topic> prints the guide for that version. Topics: agent-loop, quality, supported-suites, troubleshooting.

Examples

Example 1: Add a test for untested code

npx supercov@3.0.4 -- npm test
npx supercov@3.0.4 runs latest gaps --limit 5
# add one test for the first gap, then:
npx supercov@3.0.4 -- npm test

Example 2: Other languages

npx supercov@3.0.4 -- pytest
npx supercov@3.0.4 -- cargo test
npx supercov@3.0.4 -- go test ./...
npx supercov@3.0.4 -- ./gradlew test

Quality check

npx supercov@3.0.4 quality ranks files by code smells, and npx supercov@3.0.4 quality patch reports what a change introduced.

Best Practices

Limitations

Security & Safety Notes

Related Skills