Test framework no longer errors when test is not found
This commit is contained in:
parent
bed5207c5e
commit
b1e25f43b1
@ -411,11 +411,13 @@
|
||||
end
|
||||
|
||||
function runsuite(suitename, suitetests, testname)
|
||||
if testname then
|
||||
runtest(suitename, suitetests, testname, suitetests[testname])
|
||||
elseif suitetests then
|
||||
for testname, testfunc in pairs(suitetests) do
|
||||
runtest(suitename, suitetests, testname, testfunc)
|
||||
if suitetests then
|
||||
if testname then
|
||||
runtest(suitename, suitetests, testname, suitetests[testname])
|
||||
else
|
||||
for testname, testfunc in pairs(suitetests) do
|
||||
runtest(suitename, suitetests, testname, testfunc)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user