Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 349ff6e

Browse files
authored
Switch ghcide tests to sequential execution (#4307)
* Switch ghcide tests to sequential execution * Pin tasty 1.5 for ghcide tests
1 parent d9aaa01 commit 349ff6e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

‎ghcide-test/exe/Main.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ module Main (main) where
3333
import qualified HieDbRetry
3434
import Test.Tasty
3535
import Test.Tasty.Ingredients.Rerun
36+
import Test.Tasty.Runners
3637

3738
import AsyncTests
3839
import BootTests
@@ -70,7 +71,7 @@ import WatchedFileTests
7071
main :: IO ()
7172
main = do
7273
-- We mess with env vars so run single-threaded.
73-
defaultMainWithRerun $ testGroup "ghcide"
74+
defaultMainWithRerun $ PlusTestOptions mkSequential $testGroup "ghcide"
7475
[ OpenCloseTest.tests
7576
, InitializeResponseTests.tests
7677
, CompletionTests.tests
@@ -104,3 +105,6 @@ main = do
104105
, HieDbRetry.tests
105106
, ExceptionTests.tests
106107
]
108+
where
109+
PlusTestOptions mkSequential _ =sequentialTestGroup "foo" AllFinish []
110+

‎haskell-language-server.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ test-suite ghcide-tests
21102110
, sqlite-simple
21112111
, stm
21122112
, stm-containers
2113-
, tasty
2113+
, tasty>=1.5
21142114
, tasty-expected-failure
21152115
, tasty-hunit >=0.10
21162116
, tasty-quickcheck

‎stack-lts22.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extra-deps:
2727
- lsp-types-2.3.0.0
2828
- monad-dijkstra-0.1.1.4 # 5
2929
- retrie-1.2.3
30+
- tasty-1.5.3
3031

3132
# stan and friends
3233
- stan-0.1.3.0

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /