File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ test-suite func-test
224
224
, lens
225
225
, lsp-test >= 0.10.0.0
226
226
, tasty
227
+ , tasty-ant-xml
227
228
, tasty-expected-failure
228
229
, tasty-hunit
229
230
, tasty-rerun
Original file line number Diff line number Diff line change 1
1
module Main where
2
2
3
- import Control.Monad.IO.Class
4
- import Language.Haskell.LSP.Test
5
- import Test.Hls.Util
6
3
import Test.Tasty
4
+ import Test.Tasty.Runners (listingTests , consoleTestReporter )
7
5
import Test.Tasty.Ingredients.Rerun
6
+ import Test.Tasty.Runners.AntXML
8
7
9
8
import Command
10
9
import Completion
@@ -24,18 +23,14 @@ import Symbol
24
23
import TypeDefinition
25
24
26
25
main :: IO ()
27
- main = do
28
- setupBuildToolFiles
29
-
30
- -- run a test session to warm up the cache to prevent timeouts in other tests
31
- putStrLn " Warming up haskell-language-server cache..."
32
- runSessionWithConfig (defaultConfig { messageTimeout = 120 }) hieCommand fullCaps " test/testdata" $
33
- liftIO $ putStrLn " haskell-language-server cache is warmed up"
34
-
35
- -- TODO Test runner with config like HSpec??
36
-
37
- -- test tree
38
- defaultMainWithRerun $ testGroup " haskell-language-server" [
26
+ main =
27
+ -- ingredient: xml runner writes json file of test results (https://github.com/ocharles/tasty-ant-xml/blob/master/Test/Tasty/Runners/AntXML.hs)
28
+ -- rerunningTests allow rerun of failed tests (https://github.com/ocharles/tasty-rerun/blob/master/src/Test/Tasty/Ingredients/Rerun.hs)
29
+ defaultMainWithIngredients [
30
+ antXMLRunner
31
+ , rerunningTests [ listingTests, consoleTestReporter ]
32
+ ]
33
+ $ testGroup " haskell-language-server" [
39
34
Command. tests
40
35
, Completion. tests
41
36
, Deferred. tests
You can’t perform that action at this time.
0 commit comments