Files
UnrealLuaDemo/Script/lua/tests/run_unit_tests.lua
T

39 lines
2.3 KiB
Lua
Raw Normal View History

local ____exports = __module.env
local M__tests_harness_test_runner = __MODULE__.Import("tests.harness.test_runner", __module)
local FormatReport = M__tests_harness_test_runner.FormatReport
local RunSuites = M__tests_harness_test_runner.RunSuites
local M__tests_unit_context_and_mgr_test = __MODULE__.Import("tests.unit.context_and_mgr_test", __module)
local CreateContextAndMgrSuite = M__tests_unit_context_and_mgr_test.CreateContextAndMgrSuite
local M__tests_unit_event_hub_test = __MODULE__.Import("tests.unit.event_hub_test", __module)
local CreateEventHubSuite = M__tests_unit_event_hub_test.CreateEventHubSuite
local M__tests_unit_scheduler_test = __MODULE__.Import("tests.unit.scheduler_test", __module)
local CreateSchedulerSuite = M__tests_unit_scheduler_test.CreateSchedulerSuite
local M__tests_unit_smoke_test = __MODULE__.Import("tests.unit.smoke_test", __module)
local CreateSmokeSuite = M__tests_unit_smoke_test.CreateSmokeSuite
local M__tests_unit_storage_and_setting_test = __MODULE__.Import("tests.unit.storage_and_setting_test", __module)
local CreateStorageAndSettingSuite = M__tests_unit_storage_and_setting_test.CreateStorageAndSettingSuite
local M__tests_unit_ui_and_resource_test = __MODULE__.Import("tests.unit.ui_and_resource_test", __module)
local CreateUIAndResourceSuite = M__tests_unit_ui_and_resource_test.CreateUIAndResourceSuite
function ____exports.RunAllUnitTests()
local suites = {
CreateSmokeSuite(),
CreateEventHubSuite(),
CreateSchedulerSuite(),
CreateContextAndMgrSuite(),
CreateStorageAndSettingSuite(),
CreateUIAndResourceSuite()
}
local summary = RunSuites(suites)
print(FormatReport(summary))
return summary
end
function __module.UpdateImports()
FormatReport = M__tests_harness_test_runner.FormatReport
RunSuites = M__tests_harness_test_runner.RunSuites
CreateContextAndMgrSuite = M__tests_unit_context_and_mgr_test.CreateContextAndMgrSuite
CreateEventHubSuite = M__tests_unit_event_hub_test.CreateEventHubSuite
CreateSchedulerSuite = M__tests_unit_scheduler_test.CreateSchedulerSuite
CreateSmokeSuite = M__tests_unit_smoke_test.CreateSmokeSuite
CreateStorageAndSettingSuite = M__tests_unit_storage_and_setting_test.CreateStorageAndSettingSuite
CreateUIAndResourceSuite = M__tests_unit_ui_and_resource_test.CreateUIAndResourceSuite
end