mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-10 11:55:27 +01:00
Replacement for Minimal Development Test (PR) (#9450)
This commit is contained in:
16
games/minimal/mods/unittests/init.lua
Normal file
16
games/minimal/mods/unittests/init.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user