Yves-Marie Haussonne 8de4cc3964 feat(tests): enhance test framework for minetest mods
- Enhance instructions in the README for setting up and running tests with the test framework.
- Develop modules for registering and running tests within mods.
- Provide a mechanism to control which mods are tested through `test_harness_mods` setting.
- Improve summary display logic for test results and categorize them (passed, failed, skipped, dnr).
- Refactor scripts for better management of test execution and handling various cases.
2024-10-06 09:19:43 +02:00

12 lines
386 B
Lua

test_harness = {}
test_harness.modpath = minetest.get_modpath("test_harness")
local ver = { major = 0, minor = 1 }
test_harness.version = ver
test_harness.version_string = string.format("%d.%d", ver.major, ver.minor)
if minetest.settings:get_bool("test_harness_run_tests", false) then
dofile(test_harness.modpath .. "/base.lua")
dofile(test_harness.modpath .. "/test/init.lua")
end