File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 6464 # run the tests without parallelism, otherwise tasty will attempt to run
6565 # all functional test cases simultaneously which causes way too many hls
6666 # instances to be spun up for the poor github actions runner to handle
67- run : cabal test --test-options=-j1
67+ run : cabal test --test-options=" -j1 --rerun-update" || cabal test --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test --test-options="-j1 --rerun"
6868
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ cabal.project.local
66* ~
77* .lock
88
9+ .tasty-rerun-log
10+
911# shake build information
1012_build /
1113
Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ test-suite wrapper-test
276276 , process
277277 , tasty
278278 , tasty-ant-xml >= 1.1.6
279+ , tasty-rerun
279280
280281 hs-source-dirs : test/wrapper
281282 main-is : Main.hs
Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ import Data.Maybe
44import Test.Hls.Util
55import Test.Tasty
66import Test.Tasty.HUnit
7+ import Test.Tasty.Ingredients.Rerun
8+ import Test.Tasty.Runners ( listingTests , consoleTestReporter )
79import System.Process
810import System.Environment
911
1012main :: IO ()
1113main = do
1214 flushStackEnvironment
13- defaultMain $
14- testGroup " haskell-language-server-wrapper" [projectGhcVersionTests]
15+ defaultMainWithIngredients
16+ [rerunningTests [listingTests, consoleTestReporter]] $
17+ testGroup " haskell-language-server-wrapper" [projectGhcVersionTests]
1518
1619projectGhcVersionTests :: TestTree
1720projectGhcVersionTests = testGroup " --project-ghc-version"
You can’t perform that action at this time.
0 commit comments