Also update tests for hie-bios
# Revision history for lsp-test
# Revision history for lsp-test
+## 0.8.1.0 -- 2019-11-17
+
+* Update to haskell-lsp-0.18.0.0 (@mpickering, @alanz)
+* Tests now require hie-bios based hie
+
## 0.8.0.0 -- 2019-10-18
* Make `Session` a newtype
## 0.8.0.0 -- 2019-10-18
* Make `Session` a newtype
synopsis: Functional test framework for LSP servers.
description:
A test framework for writing tests against
synopsis: Functional test framework for LSP servers.
description:
A test framework for writing tests against
, parser-combinators:Control.Applicative.Combinators
default-language: Haskell2010
build-depends: base >= 4.10 && < 5
, parser-combinators:Control.Applicative.Combinators
default-language: Haskell2010
build-depends: base >= 4.10 && < 5
- , haskell-lsp == 0.17.*
+ , haskell-lsp == 0.18.*
, aeson
, aeson-pretty
, ansi-terminal
, aeson
, aeson-pretty
, ansi-terminal
build-depends: base >= 4.10 && < 5
, hspec
, lens
build-depends: base >= 4.10 && < 5
, hspec
, lens
- , haskell-lsp == 0.17.*
+ , haskell-lsp == 0.18.*
, lsp-test
, data-default
, aeson
, lsp-test
, data-default
, aeson
noDiagnostics
noDiagnostics
noDiagnostics
noDiagnostics
- item:_ <- getCompletions doc (Position 5 5)
+ comps <- getCompletions doc (Position 5 5)
+ let item = head (filter (\x -> x ^. label == "interactWithUser") comps)
liftIO $ do
item ^. label `shouldBe` "interactWithUser"
item ^. kind `shouldBe` Just CiFunction
liftIO $ do
item ^. label `shouldBe` "interactWithUser"
item ^. kind `shouldBe` Just CiFunction
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
openDoc "Error.hs" "haskell"
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
openDoc "Error.hs" "haskell"
- [diag] <- waitForDiagnosticsSource "ghcmod"
+ [diag] <- waitForDiagnosticsSource "bios"
liftIO $ do
diag ^. severity `shouldBe` Just DsError
liftIO $ do
diag ^. severity `shouldBe` Just DsError
- diag ^. source `shouldBe` Just "ghcmod"
+ diag ^. source `shouldBe` Just "bios"
describe "rename" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
describe "rename" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
--- /dev/null
+cradle:
+ direct:
+ arguments: []