1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-14 10:13:13 +02:00
RedMew/utils/test/discovery.lua
2020-09-28 21:03:31 +01:00

14 lines
253 B
Lua

local require = require
local pcall = pcall
function find_all_tests()
local loaded = _G.package.loaded
for name in pairs(loaded) do
pcall(require, name .. '_test')
pcall(require, name .. '_tests')
end
end
find_all_tests()