Skip to content

Supported and unsupported

static recorded (--coverage) function-level
Python (pytest) yes yes yes
JS/TS (Jest, Vitest) yes yes yes (by function name)
Playwright yes ([map] for E2E) yes (Chromium JS coverage; only adds to the static graph) no
Rust yes yes (cargo llvm-cov) yes
Java (Gradle, Maven) yes yes (JaCoCo) yes (by method signature)
Kotlin (Gradle, Maven) yes yes (JaCoCo) yes (by function signature)
Go yes yes (go test -coverprofile) yes
Dart, Flutter yes yes (dart test --coverage, flutter test --coverage) yes
Swift (SwiftPM) yes yes (swift test --enable-code-coverage) yes
Objective-C (SwiftPM targets) yes yes (same tool, file-level) no
Swift, Objective-C (Xcode projects) yes yes (xcodebuild -enableCodeCoverage, xccov) yes
Zig yes no no
Python (unittest, nose2, behave) yes yes (coverage.py) yes
Mocha, node:test yes yes (V8 coverage) yes (by function name)
Bun, Deno, Cypress, WebdriverIO yes ([map] for E2E) no no
Flutter Patrol yes no (needs a device) no
Maestro, Detox, Android instrumented yes no (needs a device) no
Ruby (RSpec, Minitest) yes no no
PHP (PHPUnit, Pest) yes no no
.NET (xUnit, NUnit, MSTest) yes no no
Elixir (ExUnit) yes no no
SQL / PostgreSQL (pgTAP, psql scripts) yes no no

Every row above is covered by tests. How far each was exercised against the real tool differs, so treat the newest ones with matching care:

Maturity Runners
Stable: run against the real tool and benchmarked on real repositories with zero misses pytest, Jest, Vitest, go test, cargo test, Gradle and Maven (Java, Kotlin), dart test, flutter test (including a real Flutter app), SwiftPM, Playwright (Chromium)
Beta: run against the real tool and benchmarked with zero misses, but on one small repository each (12 to 24 mutations) Mocha, node:test, Deno, Python unittest, Ruby (RSpec), PHP (PHPUnit), .NET (xUnit), Elixir (ExUnit). Bun was benched on a repository with a single source file, so that run says little. nose2, behave and Minitest ran against the real tool but were not benched
Experimental: not run against a real runner here (they need a device or browser, or the runner was unavailable), covered by unit and injected-recording tests only Flutter Patrol, Maestro, Detox, Android instrumented, Cypress, WebdriverIO, Pest, NUnit, MSTest, Zig, SQL (pgTAP, psql), Objective-C (SwiftPM; needs macOS, not run here), Xcode projects (run on macOS only; iOS simulators, UI tests and CocoaPods not run here)

Experimental runners are still sound by construction: with no recording they are never trimmed below their static graph, and config, lock files and native projects run everything. What they lack is proof against real projects, so check the selection on your own repository with trimtest select and --dry-run before relying on it in CI.

go test, swift test, pytest with coverage.py, Jest 29, Vitest, Playwright (real Chromium), cargo test with cargo llvm-cov, Gradle 8 and Maven 3 with JaCoCo, Dart 3 and Flutter 3 (static and recorded), Mocha, node:test, Bun, Deno, behave, nose2, RSpec, Minitest, PHPUnit, xUnit and ExUnit. patrol_cli was only checked for how it parses the arguments trimtest builds. Zig is covered by unit tests and --dry-run so far.

Linux, macOS and Windows 10/11 (x86_64 and arm64) are supported. The test suite runs on all three in CI on every push, and the soundness bench reports zero misses on each, over a smaller set of repositories on Windows. See the Windows guide.

  • Xcode projects that reference targets of another .xcodeproj, and binary or XCFramework targets.
  • Android-specific test runners and Android Gradle modules (they fall back to the static graph).
  • Recorded tier for Zig, and for Playwright projects that run Firefox or WebKit (Chromium only).

Recordings are tied to the coverage tool version and the commit they were made at; against another --base they are ignored with a warning.