
About cargo-nextest
cargo-nextest is a test runner for Rust projects. It is a replacement for the built-in cargo test command, with a clearer interface and more control over test runs.
What it does
It runs each test in isolation, shows results as they finish, and selects tests with a filter language. It can also record test runs, rerun failed tests, and export traces for analysis. The project says it can run up to 3 times faster than cargo test in its benchmarks.
Key features
- Per-test isolation for more reliable runs
- Filter language to select the tests you need
- Retries and per-test settings for slow or flaky tests
- JUnit XML output for CI systems
- Setup scripts that run before tests start
Who it's for
Rust developers and teams with large test suites. CI pipelines benefit from its partitioning across workers and its JUnit output.
Pricing and good to know
cargo-nextest is free and open source under the Apache 2.0 license. It can be installed as a pre-built binary or built from source, and it runs on Linux, Mac, Windows and other Unix-like systems. The site notes that versions 0.9.125 through 0.9.149 have a security issue, so use version 0.9.150 or later.
Highlights
- Per-test isolation for more reliable runs
- Filter language to select the tests you need
- Retries and per-test settings for slow tests
- JUnit XML output for CI systems
- Setup scripts that run before tests start












