diff --git a/.config/nextest.toml b/.config/nextest.toml index 1d863f0..b9fb77c 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -1,13 +1,22 @@ [profile.default] fail-fast = false -slow-timeout = { period = "5s", terminate-after = 6 } +slow-timeout = { period = "5s", terminate-after = 6 } # max 30 seconds +# CI machines are pretty slow, so we need to increase the timeout +[profile.ci] +slow-timeout = { period = "30s", terminate-after = 4 } # max 2 minutes for slow tests + +# Coverage works even slower, so we need to increase the timeout [profile.coverage] +slow-timeout = { period = "45s", terminate-after = 5 } # max 3.75 minutes for slow tests status-level = "none" [[profile.default.overrides]] +# Integration tests in SDL2 run serially (may not be required) filter = 'test(pacman::game::)' test-group = 'serial' + [test-groups] +# Ensure serial tests don't run in parallel serial = { max-threads = 1 } diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ed2dd01..d626301 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -51,5 +51,5 @@ jobs: - uses: taiki-e/install-action@nextest - name: Run nextest - run: cargo nextest run --workspace + run: cargo nextest run --workspace --profile ci working-directory: pacman