File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 64
64
# run the tests without parallelism, otherwise tasty will attempt to run
65
65
# all functional test cases simultaneously which causes way too many hls
66
66
# 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"
68
68
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ cabal.project.local
6
6
* ~
7
7
* .lock
8
8
9
+ .tasty-rerun-log
10
+
9
11
# shake build information
10
12
_build /
11
13
Original file line number Diff line number Diff line change @@ -276,6 +276,7 @@ test-suite wrapper-test
276
276
, process
277
277
, tasty
278
278
, tasty-ant-xml >= 1.1.6
279
+ , tasty-rerun
279
280
280
281
hs-source-dirs : test/wrapper
281
282
main-is : Main.hs
Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ import Data.Maybe
4
4
import Test.Hls.Util
5
5
import Test.Tasty
6
6
import Test.Tasty.HUnit
7
+ import Test.Tasty.Ingredients.Rerun
8
+ import Test.Tasty.Runners ( listingTests , consoleTestReporter )
7
9
import System.Process
8
10
import System.Environment
9
11
10
12
main :: IO ()
11
13
main = do
12
14
flushStackEnvironment
13
- defaultMain $
14
- testGroup " haskell-language-server-wrapper" [projectGhcVersionTests]
15
+ defaultMainWithIngredients
16
+ [rerunningTests [listingTests, consoleTestReporter]] $
17
+ testGroup " haskell-language-server-wrapper" [projectGhcVersionTests]
15
18
16
19
projectGhcVersionTests :: TestTree
17
20
projectGhcVersionTests = testGroup " --project-ghc-version"
You can’t perform that action at this time.
0 commit comments