Skip to content

Commit

Permalink
Reset warning count, don't print test list on runall
Browse files Browse the repository at this point in the history
  • Loading branch information
DerelictDrone committed Nov 16, 2023
1 parent 299bc81 commit 184f293
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/wire/zvm/zvm_tests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ ZVMTestSuite = {
local testDirectory = "wire/zvm/tests"

function ZVMTestSuite.CMDRun(_,_,_,names)
ZVMTestSuite.Warnings = 0
ZVMTestSuite.TestFiles = {}
for filename in string.gmatch(names, '[^,]+') do
local files = file.Find('lua/'..testDirectory..'/'..filename..'.lua',"GAME")
Expand All @@ -36,6 +37,7 @@ function ZVMTestSuite.CMDRun(_,_,_,names)
end
ZVMTestSuite.RunAll()
else
PrintTable(ZVMTestSuite.TestFiles)
ZVMTestSuite.StartTesting()
end
end
Expand All @@ -53,7 +55,6 @@ function ZVMTestSuite.StartTesting()
ZVMTestSuite.TestQueue[(#ZVMTestSuite.TestFiles)+1-ind] = i
end
print(#ZVMTestSuite.TestFiles.." tests loaded")
PrintTable(ZVMTestSuite.TestFiles)
ZVMTestSuite.RunNextTest()
print("Game needs to be unpaused in order to run the tests (estimated time to completion "..((#ZVMTestSuite.TestQueue)*0.25).." seconds)")
end
Expand Down

0 comments on commit 184f293

Please sign in to comment.