2020-05-24 15:46:26 +02:00
|
|
|
unittests = {}
|
|
|
|
|
|
|
|
local modpath = minetest.get_modpath("unittests")
|
|
|
|
dofile(modpath .. "/random.lua")
|
|
|
|
dofile(modpath .. "/player.lua")
|
|
|
|
dofile(modpath .. "/crafting_prepare.lua")
|
|
|
|
dofile(modpath .. "/crafting.lua")
|
2020-10-09 20:11:21 +02:00
|
|
|
dofile(modpath .. "/itemdescription.lua")
|
2020-05-24 15:46:26 +02:00
|
|
|
|
|
|
|
if minetest.settings:get_bool("devtest_unittests_autostart", false) then
|
|
|
|
unittests.test_random()
|
|
|
|
unittests.test_crafting()
|
2020-10-09 20:11:21 +02:00
|
|
|
unittests.test_short_desc()
|
2020-05-24 15:46:26 +02:00
|
|
|
minetest.register_on_joinplayer(function(player)
|
|
|
|
unittests.test_player(player)
|
|
|
|
end)
|
|
|
|
end
|
|
|
|
|