From e98cdd9a35fd0978c8ea556e7079deff59ad67d6 Mon Sep 17 00:00:00 2001 From: Carl-Oskar Larsson Date: Sun, 16 Jun 2019 15:11:14 +0200 Subject: [PATCH] Added note about running tests with one test thread. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e895727..d05ba85 100644 --- a/README.md +++ b/README.md @@ -104,3 +104,12 @@ cargo build --release inside the root directory of this project. The resulting binary will be located in `./target/release/`. +Tests **must** be run using one test thread because of race conditions when changing environment variables: +```bash +# Run all tests +cargo test -- --test-threads=1 +# Run only unit tests +cargo test test -- --test-threads=1 +# Run only integration tests +cargo test integration -- --test-threads=1 +```