SupercovDocumentation

Documentation

Supported languages

Use Supercov with your project's language and test suite.

JavaScript

Supercov works with JavaScript, TypeScript, Python, Ruby and Rust. It runs the test command your project already uses; you don’t need to move to another runner.

Languages and test suites

LanguageCommon test suitesRuntime
JavaScript / TypeScriptVitest, Jest, node:test, Playwright, Mocha, AVANode.js 22 or newer
Pythonpytest, unittestCPython 3.12 or newer
RubyRSpec, Minitest, test-unit, CucumberRuby 3.4 for full coverage; Ruby 3.3 has limited coverage
Rustcargo test, doctests, cargo-nextestRust 1.95 toolchain

React and Next.js projects use their existing test suites too. Support depends on how the tests execute your code, not the framework used to build the app.

What support means

Lines, branches, MC/DC and assertion coverage are available across these languages. The detail Supercov can record depends on the runner and where your code executes.

For example, a report may show coverage for the whole suite without being able to name the individual test that reached a line. Assertion coverage needs execution and a passing assertion linked to the same test, so this distinction matters. Browser code and remote processes also need a supported way to return their results.

The runner support reference lists those differences, including supported versions and known limits. If Supercov cannot measure something, your agent should report that limit, not try to fix it by adding tests.

Use your normal project environment

Choose your language above, then copy the prompt in Getting started or follow Installation. Your agent can use the matching npm package, Python package, Ruby gem or Rust crate. Python, Ruby and Rust projects don’t need Node.js to run the native CLI.

Keep the project’s own test dependencies, interpreter and services available. If tests normally run inside a container, have your agent run Supercov there too.

Compare coverage tools

If you already collect coverage, these guides explain what Supercov adds and when your existing tools may be enough: