Skip to content

Instantly share code, notes, and snippets.

@ari-party
Last active March 15, 2026 17:06
Show Gist options
  • Select an option

  • Save ari-party/b0ed9a4e5615ee854f0befb73a0cfcc1 to your computer and use it in GitHub Desktop.

Select an option

Save ari-party/b0ed9a4e5615ee854f0befb73a0cfcc1 to your computer and use it in GitHub Desktop.
local ServerStorage = game:GetService("ServerStorage")
local UnitTests = ServerStorage.UnitTests
local erroredModules = {}
print("[UnitTests] Requiring unit tests")
for _, testModule in UnitTests:GetChildren() do
print(`[UnitTests] Requiring {testModule.Name}`)
local success, err = pcall(require, testModule)
if not success then
table.insert(erroredModules, { testModule:GetFullName(), err })
end
end
print("[UnitTests] Calling runTests")
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