X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=lsp-test.cabal;h=1c6ca382895b00f9e4f78527b09a4cbee9ab18f4;hb=2a96b8057517343244d3e716de0938dc4e6d7955;hp=c293534f1f2be532976d2b963b213540d3809369;hpb=d1855cd1182c51333c82bf964fc96c8ec3ec76b7;p=lsp-test.git diff --git a/lsp-test.cabal b/lsp-test.cabal index c293534..1c6ca38 100644 --- a/lsp-test.cabal +++ b/lsp-test.cabal @@ -1,18 +1,13 @@ name: lsp-test -version: 0.1.0.0 +version: 0.5.1.1 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 @@ -20,12 +15,13 @@ author: Luke Lau maintainer: luke_lau@icloud.com stability: experimental bug-reports: https://github.com/Bubba/haskell-lsp-test/issues -copyright: 2018 Luke Lau +copyright: 2019 Luke Lau category: Testing build-type: Simple cabal-version: 2.0 extra-source-files: README.md -tested-with: GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3 + , ChangeLog.md +tested-with: GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3, GHC == 8.6.4 source-repository head type: git @@ -39,8 +35,8 @@ library , haskell-lsp:Language.Haskell.LSP.Types.Capabilities , parser-combinators:Control.Applicative.Combinators default-language: Haskell2010 - build-depends: base >= 4.7 && < 5 - , haskell-lsp >= 0.4 + build-depends: base >= 4.10 && < 5 + , haskell-lsp >= 0.8 && < 0.10 , aeson , aeson-pretty , ansi-terminal @@ -64,8 +60,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 @@ -80,20 +75,13 @@ test-suite tests main-is: Test.hs hs-source-dirs: test ghc-options: -W - build-depends: base >= 4.7 && < 5 + build-depends: base >= 4.10 && < 5 , hspec , lens - , data-default - , haskell-lsp >= 0.4 + , haskell-lsp >= 0.8 && < 0.10 , lsp-test + , data-default , 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