Skip to content

Commit

Permalink
feat(busted): add keep-going option
Browse files Browse the repository at this point in the history
  • Loading branch information
rish987 committed Jul 27, 2021
1 parent e863240 commit 162f9da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lua/plenary/test_harness.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugin/plenary.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

" Create command for running busted
command! -nargs=1 -complete=file PlenaryBustedFile
\ lua require('plenary.busted').run(vim.fn.expand("<args>"))
\ lua require('plenary.busted').run_command(vim.fn.expand("<args>"))

command! -nargs=+ -complete=file PlenaryBustedDirectory
\ lua require('plenary.test_harness').test_directory_command(vim.fn.expand("<args>"))
Expand Down

0 comments on commit 162f9da

Please sign in to comment.