From 03f06991d90943ec76913a9b64208d8b99097188 Mon Sep 17 00:00:00 2001 From: HiPhish Date: Tue, 7 May 2024 08:25:30 +0200 Subject: [PATCH] Set g:bustedprg in .nvimrc file to shim This will set up the shim automatically for users who have the 'exrc' option enabled. --- .nvimrc | 2 ++ HACKING.rst | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 .nvimrc 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