Skip to content

Commit

Permalink
Create nextest config.
Browse files Browse the repository at this point in the history
- Single threaded as required by tests.
- Counts any test longer than 2 minutes as failed instead of hanging.
  • Loading branch information
wmedrano committed Sep 9, 2024
1 parent c57bee6 commit e1a54af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[profile.default]
test-threads = "1"
slow-timeout = { period = "30s", terminate-after = 4 }
fail-fast = false
4 changes: 1 addition & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,4 @@ jobs:
- name: Build (metadata)
run: cargo build --verbose --no-default-features --features metadata
- name: Run Tests
run: cargo nextest run --all-features --test-threads 1
env:
RUST_TEST_THREADS: 1
run: cargo nextest run --all-features

0 comments on commit e1a54af

Please sign in to comment.