Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch ghcide tests to sequential execution #4307

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ghcide/test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import qualified HieDbRetry
import Test.Tasty
import Test.Tasty.Ingredients.Rerun
import Test.Tasty.Runners

import AsyncTests
import BootTests
Expand Down Expand Up @@ -68,7 +69,7 @@
main :: IO ()
main = do
-- We mess with env vars so run single-threaded.
defaultMainWithRerun $ testGroup "ghcide"
defaultMainWithRerun $ PlusTestOptions mkSequential $ testGroup "ghcide"
[ OpenCloseTest.tests
, InitializeResponseTests.tests
, CompletionTests.tests
Expand Down Expand Up @@ -100,3 +101,6 @@
, HieDbRetry.tests
, ExceptionTests.tests
]
where
PlusTestOptions mkSequential _ =sequentialTestGroup "foo" AllFinish []

Check warning on line 105 in ghcide/test/exe/Main.hs

View workflow job for this annotation

GitHub Actions / test (9.6, macOS-latest, false)

Pattern match(es) are non-exhaustive

Check warning on line 105 in ghcide/test/exe/Main.hs

View workflow job for this annotation

GitHub Actions / flags (9.6, ubuntu-latest)

Pattern match(es) are non-exhaustive

Check warning on line 105 in ghcide/test/exe/Main.hs

View workflow job for this annotation

GitHub Actions / test (9.6, ubuntu-latest, true)

Pattern match(es) are non-exhaustive

Check warning on line 105 in ghcide/test/exe/Main.hs

View workflow job for this annotation

GitHub Actions / test (9.6, windows-latest, true)

Pattern match(es) are non-exhaustive

Loading