From 184f293a9a114651bf7b5749c7a749ff308cbcd6 Mon Sep 17 00:00:00 2001 From: DerelictDrone Date: Thu, 16 Nov 2023 17:29:13 -0600 Subject: [PATCH] Reset warning count, don't print test list on runall --- lua/wire/zvm/zvm_tests.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/wire/zvm/zvm_tests.lua b/lua/wire/zvm/zvm_tests.lua index 826f4b6..b94f800 100644 --- a/lua/wire/zvm/zvm_tests.lua +++ b/lua/wire/zvm/zvm_tests.lua @@ -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") @@ -36,6 +37,7 @@ function ZVMTestSuite.CMDRun(_,_,_,names) end ZVMTestSuite.RunAll() else + PrintTable(ZVMTestSuite.TestFiles) ZVMTestSuite.StartTesting() end end @@ -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