Last active
April 13, 2025 20:19
-
-
Save ari-party/b0ed9a4e5615ee854f0befb73a0cfcc1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local ServerScriptService = game:GetService("ServerScriptService") | |
local UnitTests = ServerScriptService:FindFirstChild("UnitTests") :: ModuleScript | |
local erroredModules = {} | |
for _, testModule in UnitTests:GetChildren() do | |
local success, err = pcall(require, testModule) | |
if not success then | |
table.insert(erroredModules, { testModule:GetFullName(), err }) | |
end | |
task.wait() | |
end | |
local results = require(UnitTests).runTests() | |
return results, erroredModules, game.PlaceVersion |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment