forked from osyrisrblx/t
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspec.lua
More file actions
29 lines (22 loc) · 661 Bytes
/
spec.lua
File metadata and controls
29 lines (22 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
-- polyfills
table.unpack = unpack -- luacheck: ignore
-- borrowed from Roact
local LOAD_MODULES = {
Library = "lib",
TestEZ = "modules/testez/src",
}
package.path = package.path .. ";?/init.lua"
local lemur = require("modules.lemur")
local habitat = lemur.Habitat.new()
local Root = lemur.Instance.new("Folder")
Root.Name = "Root"
for name, path in pairs(LOAD_MODULES) do
local container = habitat:loadFromFs(path)
container.Name = name
container.Parent = Root
end
local TestEZ = habitat:require(Root.TestEZ)
local results = TestEZ.TestBootstrap:run({ Root.Library }, TestEZ.Reporters.TextReporter)
if results.failureCount > 0 then
os.exit(1)
end