From 9ada7cf833616846c53c5e7c1c9c824e54e567d9 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 12 Jun 2022 07:37:02 -0700 Subject: delete all tests once they've executed --- app.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app.lua') diff --git a/app.lua b/app.lua index efc2a9a..68c06a4 100644 --- a/app.lua +++ b/app.lua @@ -260,6 +260,10 @@ function App.run_tests() _G[name]() end print() + -- clean up all test methods + for _,name in ipairs(sorted_names) do + _G[name] = nil + end end -- call this once all tests are run -- cgit 1.4.1-2-gfad0