X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=test%2FTest.hs;fp=test%2FTest.hs;h=426dd6bd704f3df283e2f19e7ac08609697211d9;hp=ca135c7a379c3790f80e640262610b8887bde55b;hb=bc52b000bf018360efbfa0fcd289329c70d2c77e;hpb=7f825c46ba76f90701a2f8f2a8c040d9bc2b6683 diff --git a/test/Test.hs b/test/Test.hs index ca135c7..426dd6b 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -12,7 +12,7 @@ import ParsingTests main = hspec $ do describe "manual session" $ do it "passes a test" $ - runSession "test/recordings/renamePass" $ do + runSession "hie" "test/recordings/renamePass" $ do doc <- openDoc "Desktop/simple.hs" "haskell" skipMany loggingNotification @@ -35,7 +35,7 @@ main = hspec $ do it "fails a test" $ -- TODO: Catch the exception in haskell-lsp-test and provide nicer output - let session = runSession "test/recordings/renamePass" $ do + let session = runSession "hie" "test/recordings/renamePass" $ do openDoc "Desktop/simple.hs" "haskell" skipMany loggingNotification anyRequest @@ -43,8 +43,8 @@ main = hspec $ do describe "replay session" $ do it "passes a test" $ - replaySession "test/recordings/renamePass" `shouldReturn` True + replaySession "hie" "test/recordings/renamePass" `shouldReturn` True it "fails a test" $ - replaySession "test/recordings/renameFail" `shouldReturn` False + replaySession "hie" "test/recordings/renameFail" `shouldReturn` False parsingSpec