Skip to content

Commit 1daee27

Browse files
committed
Create nextest config.
- Single threaded as required by tests. - Counts any test longer than 2 minutes as failed instead of hanging.
1 parent c57bee6 commit 1daee27

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.config/nextest.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[profile.default]
2+
test-threads = 1
3+
slow-timeout = { period = "30s", terminate-after = 4 }
4+
fail-fast = false

.github/workflows/testing.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,4 @@ jobs:
2727
- name: Build (metadata)
2828
run: cargo build --verbose --no-default-features --features metadata
2929
- name: Run Tests
30-
run: cargo nextest run --all-features --test-threads 1
31-
env:
32-
RUST_TEST_THREADS: 1
30+
run: cargo nextest run --all-features

0 commit comments

Comments
 (0)