Add automated tests for WorldEdit API functions that run under CI

uses a real Minetest instance (Docker)
currently covers most basic manipulations
This commit is contained in:
sfan5
2021-09-20 23:00:21 +02:00
parent 2f2f5a7def
commit 770601dd5d
4 changed files with 493 additions and 0 deletions

View File

@ -38,3 +38,7 @@ if minetest.settings:get_bool("log_mods") then
print("[WorldEdit] Loaded!")
end
if minetest.settings:get_bool("worldedit_run_tests") then
dofile(path .. "/test.lua")
minetest.after(0, worldedit.run_tests)
end