- Clean, beautiful user interface

See which tests passed and failed at a glance.
- Up to 3x as fast as cargo test
Nextest uses a modern execution model for faster, more reliable test runs.
- Powerful test selection
Use a sophisticated expression language to select exactly the tests you need. Filter by name, binary, platform, or any combination.
- Identify misbehaving tests
Treat tests as cattle, not pets. Detect and terminate slow tests. Loop over tests many times with stress testing.
- Customize settings by test
Automatically retry some tests, mark them as heavy, run them serially, and much more.
- Record, replay and rerun
Record every test run. Replay CI runs locally. Rerun failing tests. Export Perfetto traces for deep analysis.
- Designed for CI
Archive and partition tests across multiple workers, export JUnit XML, and use profiles for different environments.
- Setup scripts
Run setup scripts before tests start with per-test scoping. Initialize databases, start services, and prepare fixtures.
- An ecosystem of tools
Collect test coverage. Do mutation testing. Spin up debuggers. Observe system behavior with DTrace and bpftrace probes.
- Cross-platform
Runs on Linux, Mac, Windows, and other Unix-like systems. Download binaries or build it from source.
- Open source, widely trusted
Powers Rust development at every scale, from independent open source projects to the world's largest tech companies.
- State-of-the-art, made with love
Nextest brings infrastructure-grade reliability to test runners, with care about getting the details right.
Quick start¶
Install cargo-nextest using the pre-built binaries, then run:
cargo nextest run
Note
Doctests are currently not supported because of limitations in stable Rust. For now, run doctests in a separate step with cargo test --doc.