test: add comprehensive ts2lua-unreal TS/Lua 5.4 test suites and upgrade to v0.2.2

This commit is contained in:
szy73711 committed 2026-11-29 03:35:49 +08:00
1 parent ee2e62bb34
commit 3dd61c32a9
75 files changed
+9929 -10

No files matched your search

+46
View File
@@ -0,0 +1,46 @@
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