-This is the functional testing framework for [haskell-ide-engine](https://github.com/haskell/haskell-ide-engine), and potentially any other Language Server Protocol server.
+haskell-lsp-test is a functional testing framework for Language Server Protocol servers.
```haskell
```haskell
-runSession "session/root/dir" $ do
- doc <- openDoc "foo.hs" "haskell"
+import Language.Haskell.LSP.Test
+runSession "hie" fullCaps "proj/dir" $ do
+ doc <- openDoc "Foo.hs" "haskell"
+ skipMany anyNotification
+ symbols <- getDocumentSymbols doc
+```
- skipMany notification
+## Examples
- symbols <- getDocumentSymbols doc
+### Unit tests with HSpec
+```haskell
+describe "diagnostics" $
+ it "report errors" $ runSession "hie" fullCaps "test/data" $ do