search/
Start typing to search packages!
package_2
testlib
By @egor00f
Roblox
Mirrored from WallyThis version ships no README. Showing the README from v1.0.1, mirrored from wally.
TestsLib
Small library for creating unit tests.
Why?
I dont understand how use testez.
Usage Examples
just add this lib in you dev-depends in wally.toml:
[dev-dependincies]
testlib = "egor00f/testlib@0.1.5"
add test:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local testlib = require(ReplicatedStorage.DevPackages.testlib)
local t = tester:AddTest(
tester.test.new(
"True Test1",
function(): boolean
-- Test you function here
return result --(true is ok)
end
)
)
add test that depending from other test:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local testlib = require(ReplicatedStorage.DevPackages.testlib)
local test = tester:AddTest(
tester.test.new(
"True Test1",
function(): boolean
-- Test you function here
return result --(true is ok)
end
)
)
local t = tester:AddTest(
tester.test.new(
"True Test1",
function(): boolean
-- Test you function here
return result --(true is ok)
end,
{
test
}
)
)
print summary info:
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local testlib = require(ReplicatedStorage.DevPackages.testlib)
wait()
testlib.PostSummary() -- wait of end of all tests and show results
Package Details
Install command (Click to copy)
Version
1.0.2
License
MIT
Safe for commercial use
The package archive does not include its license text; the license is declared in its manifest metadata.
Automated license review — not legal advice.
