about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--app.lua4
1 files changed, 4 insertions, 0 deletions
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