3 synopsis: Functional test framework for LSP servers.
5 A test framework for writing tests against
6 <https://microsoft.github.io/language-server-protocol/ Language Server Protocol servers>.
7 @lsp-test@ launches your server as a subprocess and allows you to simulate a session
9 Used for testing in <https://github.com/haskell/haskell-ide-engine haskell-ide-engine>.
10 > runSession "hie" fullCaps "path/to/root/dir" $ do
11 > doc <- openDoc "Desktop/simple.hs" "haskell"
12 > diags <- waitForDiagnostics
13 > let pos = Position 12 5
14 > params = TextDocumentPositionParams doc
15 > hover <- request TextDocumentHover params
16 homepage: https://github.com/Bubba/haskell-lsp-test#readme
20 maintainer: luke_lau@icloud.com
21 stability: experimental
22 bug-reports: https://github.com/Bubba/haskell-lsp-test/issues
23 copyright: 2018 Luke Lau
27 extra-source-files: README.md
28 tested-with: GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3
30 source-repository head
32 location: https://github.com/Bubba/haskell-lsp-test/
36 exposed-modules: Language.Haskell.LSP.Test
37 , Language.Haskell.LSP.Test.Replay
38 reexported-modules: haskell-lsp:Language.Haskell.LSP.Types
39 , haskell-lsp:Language.Haskell.LSP.Types.Capabilities
40 , parser-combinators:Control.Applicative.Combinators
41 default-language: Haskell2010
42 build-depends: base >= 4.7 && < 5
61 , unordered-containers
67 other-modules: Language.Haskell.LSP.Test.Capabilities
68 Language.Haskell.LSP.Test.Compat
69 Language.Haskell.LSP.Test.Decoding
70 Language.Haskell.LSP.Test.Exceptions
71 Language.Haskell.LSP.Test.Files
72 Language.Haskell.LSP.Test.Messages
73 Language.Haskell.LSP.Test.Parsing
74 Language.Haskell.LSP.Test.Server
75 Language.Haskell.LSP.Test.Session
79 type: exitcode-stdio-1.0
83 build-depends: base >= 4.7 && < 5
90 , unordered-containers
92 default-language: Haskell2010