ribosome-test-0.9.9.9: Test tools for Ribosome
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ribosome.Test.SocketTmux

Description

Socket tmux tests start a tmux server, then run a regular Neovim session in a pane and connect to Neovim over a socket.

Synopsis

Documentation

type TmuxHandlerStack = SocketHandlerEffects ++ (Reader (CustomConfig ()) ': (Reader NvimSocket ': TmuxStack)) Source #

The stack of internal effects for socket tmux tests.

type SocketTmuxWith r = TestEffects ++ (r ++ TmuxHandlerStack) Source #

The socket tmux test stack with additional effects.

type SocketTmux = SocketTmuxWith '[] Source #

The socket tmux test stack with no additional effects.

runSocketTmuxTest :: HasCallStack => Sem TmuxHandlerStack () -> UnitTest Source #

Run the tmux test stack, using a pty to host tmux.

runSocketTmuxGuiTest :: HasCallStack => Sem TmuxHandlerStack () -> UnitTest Source #

Run the tmux test stack, using a terminal to tmux tmux.

testPluginSocketTmuxConf Source #

Arguments

:: forall r. HasCallStack 
=> Members TmuxHandlerStack (r ++ TmuxHandlerStack) 
=> TmuxTestConfig

Regular test config combined with tmux config

-> InterpretersFor r TmuxHandlerStack

Interpreter for custom effects

-> [RpcHandler (r ++ TmuxHandlerStack)]

RPC handlers

-> Sem (SocketTmuxWith r) () 
-> UnitTest 

Run a plugin test against a Neovim process running in a fresh tmux session, connected over a socket.

testPluginSocketTmux Source #

Arguments

:: forall r. HasCallStack 
=> Members TmuxHandlerStack (r ++ TmuxHandlerStack) 
=> InterpretersFor r TmuxHandlerStack

Interpreter for custom effects

-> [RpcHandler (r ++ TmuxHandlerStack)]

RPC handlers

-> Sem (SocketTmuxWith r) () 
-> UnitTest 

Run a plugin test against a Neovim process running in a fresh tmux session, connected over a socket.

testHandlersSocketTmux Source #

Arguments

:: HasCallStack 
=> [RpcHandler TmuxHandlerStack]

RPC handlers

-> Sem SocketTmux () 
-> UnitTest 

Run a plugin test against a Neovim process running in a fresh tmux session, connected over a socket.

testSocketTmux :: HasCallStack => Sem SocketTmux () -> UnitTest Source #

Run a plugin test against a Neovim process running in a fresh tmux session, connected over a socket.

testPluginSocketTmuxGui Source #

Arguments

:: forall r. HasCallStack 
=> Members TmuxHandlerStack (r ++ TmuxHandlerStack) 
=> InterpretersFor r TmuxHandlerStack

Interpreter for custom effects

-> [RpcHandler (r ++ TmuxHandlerStack)]

RPC handlers

-> Sem (SocketTmuxWith r) () 
-> UnitTest 

Run a plugin test against a Neovim process running in a fresh tmux session displayed in a terminal, connected over a socket.

testHandlersSocketTmuxGui Source #

Arguments

:: HasCallStack 
=> [RpcHandler TmuxHandlerStack]

RPC handlers

-> Sem SocketTmux () 
-> UnitTest 

Run a plugin test against a Neovim process running in a fresh tmux session displayed in a terminal, connected over a socket.

testSocketTmuxGui :: HasCallStack => Sem SocketTmux () -> UnitTest Source #

Run a plugin test against a Neovim process running in a fresh tmux session displayed in a terminal, connected over a socket.