Copyright | (c) Sebastian Witte |
---|---|
License | Apache-2.0 |
Maintainer | woozletoff@gmail.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- runInEmbeddedNeovim :: TestConfiguration -> Plugin env -> Neovim env a -> IO ()
- runInEmbeddedNeovim' :: TestConfiguration -> Neovim () a -> IO ()
- newtype Seconds = Seconds Word
- newtype TestConfiguration = TestConfiguration {}
- testWithEmbeddedNeovim :: Maybe FilePath -> Seconds -> env -> Neovim env a -> IO ()
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.
runInEmbeddedNeovim' :: TestConfiguration -> Neovim () a -> IO () Source #
Type synonym for Word
.
newtype TestConfiguration Source #
Instances
Show TestConfiguration Source # | |
Defined in Neovim.Test showsPrec :: Int -> TestConfiguration -> ShowS # show :: TestConfiguration -> String # showList :: [TestConfiguration] -> ShowS # | |
Default TestConfiguration Source # | |
Defined in Neovim.Test |
testWithEmbeddedNeovim Source #
:: 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.