delete all tests once they've executed

This commit is contained in:
Kartik K. Agaram 2022-06-12 07:37:02 -07:00
parent e8ff9f285f
commit 9ada7cf833
1 changed files with 4 additions and 0 deletions

View File

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