X-Git-Url: https://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=lsp-test.cabal;h=68b560bd1d65e770421f928d513e0014d55202ad;hp=8f0a454d24992db4b8d3910ef5c37f9d76c9a63c;hb=8b2c929b82594c3c95a94852a06e9f4a733d40f6;hpb=92edb8cb75889e55936f9adb49f55269a313561b diff --git a/lsp-test.cabal b/lsp-test.cabal index 8f0a454..68b560b 100644 --- a/lsp-test.cabal +++ b/lsp-test.cabal @@ -1,5 +1,5 @@ name: lsp-test -version: 0.8.0.0 +version: 0.11.0.7 synopsis: Functional test framework for LSP servers. description: A test framework for writing tests against @@ -7,26 +7,32 @@ description: @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 . + To see examples of it in action, check out , + and + . homepage: https://github.com/bubba/lsp-test#readme license: BSD3 license-file: LICENSE author: Luke Lau maintainer: luke_lau@icloud.com -stability: experimental bug-reports: https://github.com/bubba/lsp-test/issues -copyright: 2019 Luke Lau +copyright: 2020 Luke Lau category: Testing build-type: Simple cabal-version: 2.0 extra-source-files: README.md , ChangeLog.md -tested-with: GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3, GHC == 8.6.4, GHC == 8.6.5, GHC == 8.8.1 +tested-with: GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3, GHC == 8.10.1 source-repository head type: git location: https://github.com/bubba/lsp-test/ +Flag DummyServer + Description: Build the dummy server executable used in testing + Default: False + Manual: True + library hs-source-dirs: src exposed-modules: Language.Haskell.LSP.Test @@ -36,8 +42,9 @@ library , parser-combinators:Control.Applicative.Combinators default-language: Haskell2010 build-depends: base >= 4.10 && < 5 - , haskell-lsp == 0.17.* + , haskell-lsp >= 0.22 && < 0.24 , aeson + , time , aeson-pretty , ansi-terminal , async @@ -49,11 +56,11 @@ library , Diff , directory , filepath + , Glob >= 0.9 && < 0.11 , lens , mtl - , parser-combinators + , parser-combinators >= 1.2 , process >= 1.6 - , rope-utf16-splay , text , transformers , unordered-containers @@ -65,12 +72,27 @@ library Language.Haskell.LSP.Test.Decoding Language.Haskell.LSP.Test.Exceptions Language.Haskell.LSP.Test.Files - Language.Haskell.LSP.Test.Messages Language.Haskell.LSP.Test.Parsing Language.Haskell.LSP.Test.Server Language.Haskell.LSP.Test.Session ghc-options: -W +executable dummy-server + main-is: Main.hs + hs-source-dirs: test/dummy-server + ghc-options: -W + build-depends: base >= 4.10 && < 5 + , haskell-lsp >= 0.23 && < 0.24 + , data-default + , aeson + , unordered-containers + , directory + , filepath + default-language: Haskell2010 + scope: private + if !flag(DummyServer) + buildable: False + test-suite tests type: exitcode-stdio-1.0 main-is: Test.hs @@ -79,10 +101,13 @@ test-suite tests build-depends: base >= 4.10 && < 5 , hspec , lens - , haskell-lsp == 0.17.* + , haskell-lsp >= 0.22 && < 0.24 , lsp-test , data-default , aeson , unordered-containers , text + , directory + , filepath default-language: Haskell2010 + build-tool-depends: lsp-test:dummy-server