diff --git a/lua/plenary/test_harness.lua b/lua/plenary/test_harness.lua index 87aeeb411..8780a415d 100644 --- a/lua/plenary/test_harness.lua +++ b/lua/plenary/test_harness.lua @@ -40,6 +40,8 @@ end function harness.test_directory(directory, opts) print("Starting...") opts = vim.tbl_deep_extend('force', {winopts = {winblend = 3}}, opts or {}) + local run_opts = vim.tbl_deep_extend('force', {keep_going = false}, opts.run_opts or {}) + print(vim.inspect(run_opts)) local res = {} if not headless then diff --git a/plugin/plenary.vim b/plugin/plenary.vim index d0ac14b0b..ea17e75eb 100644 --- a/plugin/plenary.vim +++ b/plugin/plenary.vim @@ -1,7 +1,7 @@ " Create command for running busted command! -nargs=1 -complete=file PlenaryBustedFile - \ lua require('plenary.busted').run(vim.fn.expand("")) + \ lua require('plenary.busted').run_command(vim.fn.expand("")) command! -nargs=+ -complete=file PlenaryBustedDirectory \ lua require('plenary.test_harness').test_directory_command(vim.fn.expand(""))