A next-generation test runner for Rust.
open sourceApache-2.0 OR MITself-hostablefree
cargo-nextest is a replacement for cargo test, up to 3x faster per its site, that runs each test in its own process and schedules tests across binaries in parallel. It adds filtersets for choosing tests, retries for flaky tests, test partitioning across CI machines, archiving test builds to run elsewhere, and JUnit output.
Ways to install
Package managers
Problems it solves
- cargo test is slow on our big Rust workspace
- one slow test binary blocks all the others from running
- retry flaky Rust tests automatically in CI
- split Rust tests across several CI machines
- a test that leaks global state breaks other tests in the same process
- find which tests are slow or hang
- JUnit XML output from Rust tests for our CI dashboard
- build tests once and run them on a different machine
- pick tests to run with a filter expression instead of name substrings
Features
- process-per-test
- parallel across binaries
- filtersets
- retries
- slow and leaky test detection
- partitioning
- test archives
- JUnit output
- stress testing
- setup scripts
View 1 more
- record/replay/rerun
Capabilities
| Has a command line tool | plan not known |
|---|
