feat(gotests): add generate all tests
docs(gotests): add generate all tests
This commit is contained in:
parent
acd414d454
commit
70297f28e7
4 changed files with 18 additions and 0 deletions
|
|
@ -45,4 +45,13 @@ function M.func_test(parallel)
|
|||
add_test(cmd_args)
|
||||
end
|
||||
|
||||
function M.all_tests(parallel)
|
||||
local cmd_args = { "-all" }
|
||||
if parallel then
|
||||
table.insert(cmd_args, "-parallel")
|
||||
end
|
||||
|
||||
add_test(cmd_args)
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@ gopher.get = require "gopher.goget"
|
|||
gopher.impl = require "gopher.impl"
|
||||
gopher.generate = require "gopher.gogenerate"
|
||||
gopher.test_add = gotests.one_test
|
||||
gopher.tests_all = gotests.all_tests
|
||||
|
||||
return gopher
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue