fix:go unit test flag "-run" not "-r" (#302)

* fix:go unit test flag "-run" not "-r"

* fix:just consider not use floaterm

* chores

---------

Co-authored-by: zhaogang <zhaogang@dustess.com>
pull/308/head
zhaogangang 1 year ago committed by GitHub
parent 403fde13a5
commit 49929db247
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -375,6 +375,7 @@ local function run_tests_with_ts_node(args, func_node, tblcase_ns)
if run_in_floaterm then
table.insert(cmd, test_runner)
table.insert(cmd, 'test')
run_flags = '-run'
end
if optarg['s'] then
@ -584,7 +585,12 @@ M.test_file = function(...)
table.insert(cmd_args, '-C')
table.insert(cmd_args, optarg['C'])
end
table.insert(cmd_args, '-r')
if run_in_floaterm then
table.insert(cmd_args, '-run')
else
table.insert(cmd_args, '-r')
end
tests = "'" .. tests .. "'"
table.insert(cmd_args, tests) -- shell script | is a pipe

Loading…
Cancel
Save