summaryrefslogtreecommitdiff
path: root/games/devtest/mods/unittests/init.lua
blob: 6c1728420da644bb94b5a22ab7d7800aebd9fe53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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