From 162f9da0e2c8ca0482d2fa5320bf224efae96b45 Mon Sep 17 00:00:00 2001 From: Rishikesh Vaishnav Date: Mon, 26 Jul 2021 19:52:40 -0700 Subject: [PATCH] feat(busted): add keep-going option --- lua/plenary/test_harness.lua | 2 ++ plugin/plenary.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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(""))