mirror of
https://github.com/0x5eal/semver-luau.git
synced 2024-12-12 15:00:36 +00:00
chore(lune): migrate tests runner to use official frktest package
This commit is contained in:
parent
ef2cf642d6
commit
c6e1776c87
1 changed files with 7 additions and 7 deletions
|
@ -11,14 +11,14 @@ local frktest = require("@pkg/frktest")
|
||||||
local require = require :: (path: string) -> () -> ()
|
local require = require :: (path: string) -> () -> ()
|
||||||
|
|
||||||
if process.args[1] ~= nil then
|
if process.args[1] ~= nil then
|
||||||
require("../tests/" .. process.args[1])()
|
require("../tests/" .. process.args[1])()
|
||||||
else
|
else
|
||||||
for _, test in fs.readDir("tests") do
|
for _, test in fs.readDir("tests") do
|
||||||
require("../tests/" .. test)()
|
require("../tests/" .. test)()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
frktest.reporters.lune.init()
|
frktest._reporters.lune_console_reporter.init()
|
||||||
if not frktest.core.run() then
|
if not frktest.run() then
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue