47 lines
2.3 KiB
Lua
47 lines
2.3 KiB
Lua
local ____exports = {}
|
|
local ____TestRunner = require("Tests.Harness.TestRunner")
|
|
local Reset = ____TestRunner.Reset
|
|
local PrintReport = ____TestRunner.PrintReport
|
|
local ____MockUnLuaRuntime = require("Tests.Harness.MockUnLuaRuntime")
|
|
local InstallIfNeeded = ____MockUnLuaRuntime.InstallIfNeeded
|
|
local ____BasicTypesAndControlFlow = require("Tests.Syntax.BasicTypesAndControlFlow")
|
|
local RunBasicTypesAndControlFlowTests = ____BasicTypesAndControlFlow.RunBasicTypesAndControlFlowTests
|
|
local ____FunctionsClosuresAndTuples = require("Tests.Syntax.FunctionsClosuresAndTuples")
|
|
local RunFunctionsClosuresAndTuplesTests = ____FunctionsClosuresAndTuples.RunFunctionsClosuresAndTuplesTests
|
|
local ____PureClassesAndGenerics = require("Tests.Syntax.PureClassesAndGenerics")
|
|
local RunPureClassesAndGenericsTests = ____PureClassesAndGenerics.RunPureClassesAndGenericsTests
|
|
local ____UnLuaSyntaxSuite = require("Tests.Syntax.UnLuaSyntaxSuite")
|
|
local RunUnLuaSyntaxTests = ____UnLuaSyntaxSuite.RunUnLuaSyntaxTests
|
|
local ____UnLuaExamplesSuite = require("Tests.UnLuaExamples.UnLuaExamplesSuite")
|
|
local RunUnLuaExamplesTests = ____UnLuaExamplesSuite.RunUnLuaExamplesTests
|
|
local ____GameplaySuite = require("Tests.Gameplay.GameplaySuite")
|
|
local RunGameplayTests = ____GameplaySuite.RunGameplayTests
|
|
local ____HotReloadAndFrameworkTest = require("Tests.Extra.HotReloadAndFrameworkTest")
|
|
local RunHotReloadAndFrameworkTests = ____HotReloadAndFrameworkTest.RunHotReloadAndFrameworkTests
|
|
local ____Lua54PitfallsTest = require("Tests.Extra.Lua54PitfallsTest")
|
|
local RunLua54PitfallsTests = ____Lua54PitfallsTest.RunLua54PitfallsTests
|
|
local ____LifecycleAndMemoryTest = require("Tests.Extra.LifecycleAndMemoryTest")
|
|
local RunLifecycleAndMemoryTests = ____LifecycleAndMemoryTest.RunLifecycleAndMemoryTests
|
|
function ____exports.RunAll()
|
|
InstallIfNeeded()
|
|
Reset()
|
|
RunBasicTypesAndControlFlowTests()
|
|
RunFunctionsClosuresAndTuplesTests()
|
|
RunPureClassesAndGenericsTests()
|
|
RunUnLuaSyntaxTests()
|
|
RunUnLuaExamplesTests()
|
|
RunGameplayTests()
|
|
RunHotReloadAndFrameworkTests()
|
|
RunLua54PitfallsTests()
|
|
RunLifecycleAndMemoryTests()
|
|
return PrintReport()
|
|
end
|
|
local g = _G
|
|
if g.__TS2LUA_TEST_AUTO_RUN__ == true then
|
|
local summary = ____exports.RunAll()
|
|
if summary.failed > 0 then
|
|
os.exit(1)
|
|
end
|
|
end
|
|
return ____exports
|