38 lines
1.0 KiB
Lua
38 lines
1.0 KiB
Lua
local Expectation = require(script.Expectation)
|
|
local TestBootstrap = require(script.TestBootstrap)
|
|
local TestEnum = require(script.TestEnum)
|
|
local TestPlan = require(script.TestPlan)
|
|
local TestPlanBuilder = require(script.TestPlanBuilder)
|
|
local TestPlanner = require(script.TestPlanner)
|
|
local TestResults = require(script.TestResults)
|
|
local TestRunner = require(script.TestRunner)
|
|
local TestSession = require(script.TestSession)
|
|
local TextReporter = require(script.Reporters.TextReporter)
|
|
|
|
local function run(testRoot, callback)
|
|
local modules = TestBootstrap:getModules(testRoot)
|
|
local plan = TestPlanner.createPlan(modules)
|
|
local results = TestRunner.runPlan(plan)
|
|
|
|
callback(results)
|
|
end
|
|
|
|
local TestEZ = {
|
|
run = run,
|
|
|
|
Expectation = Expectation,
|
|
TestBootstrap = TestBootstrap,
|
|
TestEnum = TestEnum,
|
|
TestPlan = TestPlan,
|
|
TestPlanBuilder = TestPlanBuilder,
|
|
TestPlanner = TestPlanner,
|
|
TestResults = TestResults,
|
|
TestRunner = TestRunner,
|
|
TestSession = TestSession,
|
|
|
|
Reporters = {
|
|
TextReporter = TextReporter,
|
|
},
|
|
}
|
|
|
|
return TestEZ |