Test framework no longer errors when test is not found

This commit is contained in:
Jason Perkins 2014-07-29 15:50:55 -04:00
parent bed5207c5e
commit b1e25f43b1

View File

@ -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