diff --git a/.nvimrc b/.nvimrc new file mode 100644 index 0000000..c7a30dc --- /dev/null +++ b/.nvimrc @@ -0,0 +1,2 @@ +" Use the custom shim as the busted binary for testing +let g:bustedprg='./test/busted' diff --git a/HACKING.rst b/HACKING.rst index 796e5fa..9000903 100644 --- a/HACKING.rst +++ b/HACKING.rst @@ -8,6 +8,7 @@ Testing ####### + A test setup must meet the following criteria: - Test definitions must be run by with Neovim as the Lua interpreter to get @@ -49,6 +50,13 @@ End-to-end tests run in a separate Neovim instance which we control via RPC. These are tests which mutate the state of the editor, such as adding highlighting on changes. Execute `make e2e-test` to run all end to end tests. +Running tests with Neotest-busted +================================= + +To run tests the `g:bustedprg` variable must be set to `'./test/busted'`, which +is the path to the shim script. If the `exrc` option is set the variable will +be set automatically. + Design decisions