Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Latest commit

 

History

History
35 lines (26 loc) · 767 Bytes

TESTING.md

File metadata and controls

35 lines (26 loc) · 767 Bytes

Testing

  • 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

Suite

  • Run make test in the root of the project to run the test suite.

Single-file tests

  • 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