github nextest-rs/nextest cargo-nextest-0.9.131-rc.2
cargo-nextest 0.9.131-rc.2

latest releases: cargo-nextest-0.9.143, nextest-runner-0.122.1, cargo-nextest-0.9.142...
pre-release5 months ago

Added

  • Setup scripts and wrapper scripts can now specify per-command environment variables via the env field in the command configuration. (#3001)

    For example:

    [scripts.setup.script1]
    command = {
        command-line = "cargo run -p setup-test-db",
        env = {
            DB_PATH = "sqlite:/path/to/source.db",
        },
    }

    Keys cannot begin with NEXTEST, as that prefix is reserved for internal use. Values defined in env override values set by the environment and by Cargo's config.toml (including those with force = true).

    Thanks metatoaster for your first contribution!

  • A new flaky-result configuration field and --flaky-result CLI flag (environment variable NEXTEST_FLAKY_RESULT) that controls whether flaky tests are treated as passing or failing. When set to "fail", tests that pass on retry are marked as failures. The default remains "pass". flaky-result can be set at the profile level or per-test via overrides. (#3148)

    For more information, see Failing flaky tests.

    [profile.ci]
    retries = 2
    flaky-result = "fail"
  • A new cargo nextest store export-chrome-trace command that exports test run data in the Chrome Trace Event format. Traces can be loaded into Perfetto or Chrome's chrome://tracing for a timeline view of test parallelism and execution. (#3163)

    cargo nextest store export-chrome-trace latest -o trace.json

    Traces support grouping by binary (default) or by slot (--group-by slot), and can be exported from both on-disk runs and portable recordings. For more, see Perfetto traces.

Fixed

Miscellaneous

  • Self-update (cargo nextest self update) now uses ureq instead of reqwest and replaces the ring dependency with aws-lc-rs. This may require you to install CMake if you're on a less-commonly-used platform. (#3141)

Internal improvements

  • Breaking change to the recording format: recordings now include test group and slot information, enabling Chrome trace export from recordings. (#3158)

Don't miss a new nextest release

NewReleases is sending notifications on new releases.