From a79220925044909bf711d66c16874ecb6acd137f Mon Sep 17 00:00:00 2001 From: Orbital Date: Thu, 1 Jun 2023 22:38:10 -0500 Subject: [PATCH] Change CI tests to run sequentially --- .github/workflows/main.yml | 2 +- CONTRIBUTING.md | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 338bebb2..d3352fb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,7 @@ jobs: name: cargo test with: command: test - args: --all-targets --benches + args: --all-targets --benches -- --test-threads=1 - uses: actions-rs/cargo@v1 name: cargo fmt with: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a9113474..b993a674 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -46,3 +46,8 @@ cargo clippy 2. Error String: Lower case, no `.` terminating. 3. Display imps: Lower case, no `.` terminating. +### Integration tests + +Note that the way the integration tests run now, it's best to run them sequentially rather than concurrently (which is Rust's default). You can run them sequentially with this command: + +`cargo test -- --test-threads=1`