Skip to content

A next-generation test runner for Rust

Up to 3× faster than cargo test, with a modern interface, per-test isolation, and first-class CI support.

  • Clean, beautiful user interface

    See which tests passed and failed at a glance.

    Running tests

  • Powerful test selection

    Use a sophisticated expression language to select exactly the tests you need. Filter by name, binary, platform, or any combination.

    Filtersets

  • Setup scripts

    Run setup scripts before tests start with per-test scoping. Initialize databases, start services, and prepare fixtures.

    Setup scripts

  • Open source, widely trusted

    Powers Rust development at every scale, from independent open source projects to the world's largest tech companies.

    License (Apache 2.0)

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.