Skip to content
Discussion options

You must be logged in to vote

Thanks for the questions!

Is this behavior official and can I rely on it for now and future cargo-nextest releases?

The process-per-test behavior is guaranteed to be the default behavior of nextest now and into the future. See https://nexte.st/docs/design/why-process-per-test for the rationale.

Relying on this behavior makes my test specific to cargo-nextest and it won't run on cargo test anymore. Can I detect the presence of cargo-nextest and output an error if my test is run with a different runner?

You can check for NEXTEST=1 and NEXTEST_EXECUTION_MODE=process-per-test, as documented at https://nexte.st/docs/configuration/env-vars/#environment-variables-nextest-sets.

Is all of thi…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ColinFinck
Comment options

Answer selected by ColinFinck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants