File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -229,6 +229,7 @@ Where the first argument is the directory you'd like to test. It will search for
229229the pattern ` *_spec.lua ` and execute them in separate neovim instances.
230230
231231The second argument is a Lua option table with the following fields:
232+ - ` nvim_cmd ` : specify the command to launch this neovim instance (defaults to ` vim.v.progpath ` )
232233- ` minimal_init ` : specify an init.vim to use for this instance, uses ` --noplugin `
233234- ` minimal ` : uses ` --noplugin ` without an init script (overrides ` minimal_init ` )
234235- ` sequential ` : whether to run tests sequentially (default is to run in parallel)
Original file line number Diff line number Diff line change 4141function harness .test_directory (directory , opts )
4242 print " Starting..."
4343 opts = vim .tbl_deep_extend (" force" , {
44+ nvim_cmd = vim .v .progpath ,
4445 winopts = { winblend = 3 },
4546 sequential = false ,
4647 keep_going = true ,
@@ -95,7 +96,7 @@ function harness.test_directory(directory, opts)
9596 end
9697
9798 local job = Job :new {
98- command = vim . v . progpath ,
99+ command = opts . nvim_cmd ,
99100 args = args ,
100101
101102 -- Can be turned on to debug
You can’t perform that action at this time.
0 commit comments