Add tests
[lsp-test.git] / haskell-lsp-test.cabal
index b00d5077ea3df7e45ae0e21ab8aec2819b89f7af..de92fce668b51032a0b669bab8a7c4dce63405d1 100644 (file)
@@ -29,6 +29,7 @@ library
                      , text
                      , transformers
                      , process
+                     , directory
   if os(windows)
     build-depends:     win32
   else
@@ -37,6 +38,16 @@ library
                        Capabilities
   ghc-options:         -W
 
+test-suite tests
+  type:                exitcode-stdio-1.0
+  main-is:             Test.hs
+  hs-source-dirs:      test
+  ghc-options:         -W
+  build-depends:       base >= 4.7 && < 5
+                     , hspec
+                     , haskell-lsp-test
+  default-language:    Haskell2010
+
 executable example
   hs-source-dirs:      example
   main-is:             Main.hs