- The test suite includes unit and integration tests and depends on
plenary.nvim
- The default
test/minimal.vim
(passed to the instantiation of Neovim with
-u
) assumes that you've installed plenary.nvim
one directory above where
this project lives, since the test suite modifies rtp
as follows:
...
set rtp+=../plenary.nvim
...
- Ensure that your plugin directory structure looks something like the
following:
.
├── plenary.nvim
└── null-ls
- Run
make test
in the root of the project to run the test suite.
- Run
FILE=test/spec/file_spec.lua make test-file
to run tests from a specific
file, for example:
FILE=test/spec/e2e_spec.lua make test-file