-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtestcase.lua
42 lines (37 loc) · 1.28 KB
/
testcase.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by heyqule.
--- DateTime: 1/5/2024 12:10 AM
---
if TEST_MODE and script.active_mods["factorio-test"] then
local tests = {
"tests/data_check",
"tests/attack_beacon",
"tests/attack_pathing",
"tests/attack_meter",
"tests/scouts",
"tests/surface_manager",
"tests/environmental_attacks",
}
if script.active_mods["erm_zerg"] and script.active_mods["erm_toss"] then
table.insert(tests,"tests/quality_system")
table.insert(tests,"tests/attack_group")
table.insert(tests,"tests/attack_heat")
table.insert(tests,"tests/base_build")
table.insert(tests,"tests/custom_attack")
--table.insert(tests,"tests/interplanetary_attacks")
else
error("Required erm_zerg and erm_protoss to test attack functions")
end
if script.active_mods["erm_terran"] then
table.insert(tests,"tests/army")
else
--error("Required erm_terran to test army functions")
end
require("__factorio-test__/init")(tests)
-- the first argument is a list of test files (require paths) to run
--require("__factorio-test__/init")({
-- "tests/attack_group",
-- "tests/interplanetary_attacks"
--})
end