Reputation: 41
I am attempting to write tests for my Rust program. Normally, these tests are run in parallel but I want to run them sequentially. I looked around and I can set this environment variable RUST_TEST_TASKS=1
, but I am not sure where to do that.
Upvotes: 4
Views: 597
Reputation: 1602
I think what they mean is setting the environment variables in the shell the test runner is running in, such as:
RUST_TEST_TASKS=1 ./my-test-runner
or exporting it:
export RUST_TEST_TASKS=1
./my-test-runner
Upvotes: 2