X-Git-Url: http://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=lsp-test.cabal;h=2d0b453c76952d909b065ff5fb078ba60c695c39;hp=c293534f1f2be532976d2b963b213540d3809369;hb=b4074b778a1487b730d9503d7e5885b01253846a;hpb=d1855cd1182c51333c82bf964fc96c8ec3ec76b7 diff --git a/lsp-test.cabal b/lsp-test.cabal index c293534..2d0b453 100644 --- a/lsp-test.cabal +++ b/lsp-test.cabal @@ -4,15 +4,10 @@ synopsis: Functional test framework for LSP servers. description: A test framework for writing tests against . - @lsp-test@ launches your server as a subprocess and allows you to simulate a session - down to the wire. - Used for testing in . - > runSession "hie" fullCaps "path/to/root/dir" $ do - > doc <- openDoc "Desktop/simple.hs" "haskell" - > diags <- waitForDiagnostics - > let pos = Position 12 5 - > params = TextDocumentPositionParams doc - > hover <- request TextDocumentHover params + @Language.Haskell.LSP.Test@ launches your server as a subprocess and allows you to simulate a session + down to the wire, and @Language.Haskell.LSP.Test@ can replay captured sessions from + . + It's currently used for testing in . homepage: https://github.com/Bubba/haskell-lsp-test#readme license: BSD3 license-file: LICENSE @@ -40,7 +35,7 @@ library , parser-combinators:Control.Applicative.Combinators default-language: Haskell2010 build-depends: base >= 4.7 && < 5 - , haskell-lsp >= 0.4 + , haskell-lsp >= 0.5 , aeson , aeson-pretty , ansi-terminal @@ -64,8 +59,7 @@ library build-depends: Win32 else build-depends: unix - other-modules: Language.Haskell.LSP.Test.Capabilities - Language.Haskell.LSP.Test.Compat + other-modules: Language.Haskell.LSP.Test.Compat Language.Haskell.LSP.Test.Decoding Language.Haskell.LSP.Test.Exceptions Language.Haskell.LSP.Test.Files @@ -84,16 +78,10 @@ test-suite tests , hspec , lens , data-default - , haskell-lsp >= 0.4 + , haskell-lsp >= 0.5 , lsp-test , aeson , unordered-containers , text default-language: Haskell2010 -executable lsp-test-example - hs-source-dirs: example - main-is: Main.hs - default-language: Haskell2010 - build-depends: base >= 4.7 && < 5 - , lsp-test