mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 19:43:45 +01:00
17 lines
429 B
Lua
17 lines
429 B
Lua
unittests = {}
|
|
|
|
local modpath = minetest.get_modpath("unittests")
|
|
dofile(modpath .. "/random.lua")
|
|
dofile(modpath .. "/player.lua")
|
|
dofile(modpath .. "/crafting_prepare.lua")
|
|
dofile(modpath .. "/crafting.lua")
|
|
|
|
if minetest.settings:get_bool("devtest_unittests_autostart", false) then
|
|
unittests.test_random()
|
|
unittests.test_crafting()
|
|
minetest.register_on_joinplayer(function(player)
|
|
unittests.test_player(player)
|
|
end)
|
|
end
|
|
|