nvim-hs-2.3.2.1: Haskell plugin backend for neovim
Copyright(c) Sebastian Witte
LicenseApache-2.0
Maintainerwoozletoff@gmail.com
Stabilityexperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

Neovim.Test

Description

 
Synopsis

Documentation

runInEmbeddedNeovim :: TestConfiguration -> Plugin env -> Neovim env a -> IO () Source #

Run a neovim process with -n --clean --embed and execute the given action that will have access to the started instance.

The TestConfiguration contains sensible defaults.

env is the state of your function that you want to test.

newtype Seconds Source #

Type synonym for Word.

Constructors

Seconds Word 

Instances

Instances details
Show Seconds Source # 
Instance details

Defined in Neovim.Test

newtype TestConfiguration Source #

Constructors

TestConfiguration 

Fields

Instances

Instances details
Show TestConfiguration Source # 
Instance details

Defined in Neovim.Test

Default TestConfiguration Source # 
Instance details

Defined in Neovim.Test

testWithEmbeddedNeovim Source #

Arguments

:: Maybe FilePath

Optional path to a file that should be opened

-> Seconds

Maximum time (in seconds) that a test is allowed to run

-> env

Read-only configuration

-> Neovim env a

Test case

-> IO () 

Deprecated: Use "runInEmbeddedNeovim def env action" and open files with nvim_command "edit file"

The same as runInEmbeddedNeovim with the given file opened via nvim_command "edit file". - This method is kept for backwards compatibility.