Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep-going option for busted-style tests #197

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rish987
Copy link
Contributor

@rish987 rish987 commented Jul 27, 2021

Closes #196.

@rish987 rish987 force-pushed the busted_keep_going branch from 162f9da to 9765aa8 Compare July 27, 2021 03:18
@rish987 rish987 force-pushed the busted_keep_going branch 3 times, most recently from 1cebffa to d43df82 Compare August 3, 2021 12:55
@@ -42,6 +42,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 {})
local run_opts_string = vim.inspect(run_opts):gsub("\n", " ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do json_encode and json_decode instead here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. Also there was a pretty blatant bug here that I somehow missed when testing (was misusing run below instead of replacing with run_command), fixed.

@rish987 rish987 force-pushed the busted_keep_going branch from d43df82 to 1de239f Compare August 9, 2021 22:39
@rish987 rish987 force-pushed the busted_keep_going branch from 1de239f to 7d84fe1 Compare August 9, 2021 22:43
@rish987 rish987 marked this pull request as draft August 23, 2021 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simulate --keep-going option for busted-style tests
2 participants