Skip to content

Commit

Permalink
Added note about running tests with one test thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlolars authored and andy-5 committed Jul 4, 2019
1 parent ad6ed56 commit e98cdd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit e98cdd9

Please sign in to comment.