local V=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local F=require(V.DevPackages.TestEZ)local function B(V)print()local B,n=xpcall(function()local B=F.TestBootstrap:run(V)return B.failureCount==0 end,debug.traceback)print()return B,n end return B
--- Provides a function to run tests.
-- The generic testing function can be run in whatever testing environtment is
-- being used, providing a layer of abstraction between the test suite and the
-- environment.
--
-- @module Tests
-- @release 0.1.1, 2020-11-03
-- @license MIT
-- @see TestEZ

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local TestEZ = require(ReplicatedStorage.DevPackages.TestEZ)

--- The testing function.
-- Accepts a list of roots, runs tests on them, then reports on test status.
--
-- @param roots a table of roots to find tests
-- @return whether the tests completed
-- @return true if the tests were successful, false if the tests were
-- unsuccessful, an error message if the tests were not completed
local function Tests(roots)
	print()
	local completed, result = xpcall(function()
		local results = TestEZ.TestBootstrap:run(roots)
		return results.failureCount == 0
	end, debug.traceback)
	print()
	return completed, result
end

return Tests
