X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=lsp-test.cabal;h=fc20dc7b07f1cd33ad6c7cb2af46adb92439b312;hb=eb0bcf9d96d80c05eab5e8bf01e376bfb5df85d8;hp=df4833d37ec02b56ffa87bce621b1f946d69d89c;hpb=bf94a6e6874dc58734aa56391ce058cba870dc25;p=opengl.git diff --git a/lsp-test.cabal b/lsp-test.cabal index df4833d..fc20dc7 100644 --- a/lsp-test.cabal +++ b/lsp-test.cabal @@ -1,7 +1,18 @@ name: lsp-test version: 0.1.0.0 synopsis: Functional test framework for LSP servers. --- description: +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 homepage: https://github.com/Bubba/haskell-lsp-test#readme license: BSD3 license-file: LICENSE @@ -12,20 +23,24 @@ bug-reports: https://github.com/Bubba/haskell-lsp-test/issues copyright: 2018 Luke Lau category: Testing build-type: Simple -cabal-version: >=1.10 +cabal-version: 2.0 extra-source-files: README.md +tested-with: GHC == 8.2.2 , GHC == 8.4.2 , GHC == 8.4.3 + +source-repository head + type: git + location: https://github.com/Bubba/haskell-lsp-test/ library hs-source-dirs: src exposed-modules: Language.Haskell.LSP.Test - , Language.Haskell.LSP.Test.Capabilities , Language.Haskell.LSP.Test.Replay reexported-modules: haskell-lsp:Language.Haskell.LSP.Types , 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 + , haskell-lsp >= 0.5 , aeson , aeson-pretty , ansi-terminal @@ -68,16 +83,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