lsp-test-0.5.4.0: Functional test framework for LSP servers.

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.LSP.Test.Replay

Description

A testing tool for replaying captured client logs back to a server, and validating that the server output matches up with another log.

Synopsis

Documentation

replaySession Source #

Arguments

:: String

The command to run the server.

-> FilePath

The recorded session directory.

-> IO () 

Replays a captured client output and makes sure it matches up with an expected response. The session directory should have a captured session file in it named "session.log".