Skip to content

Instantly share code, notes, and snippets.

@ari-party
Last active April 13, 2025 20:19
Show Gist options
  • Save ari-party/b0ed9a4e5615ee854f0befb73a0cfcc1 to your computer and use it in GitHub Desktop.
Save ari-party/b0ed9a4e5615ee854f0befb73a0cfcc1 to your computer and use it in GitHub Desktop.
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