chore(lune): migrate tests runner to use official frktest package

This commit is contained in:
Erica Marigold 2024-11-12 20:20:55 +05:30 committed by GitHub
parent 429bd82bbb
commit 6365b4121e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,14 +11,14 @@ local frktest = require("@pkg/frktest")
local require = require :: (path: string) -> () -> ()
if process.args[1] ~= nil then
require("../tests/" .. process.args[1])()
require("../tests/" .. process.args[1])()
else
for _, test in fs.readDir("tests") do
require("../tests/" .. test)()
end
for _, test in fs.readDir("tests") do
require("../tests/" .. test)()
end
end
frktest.reporters.lune.init()
if not frktest.core.run() then
process.exit(1)
frktest._reporters.lune_console_reporter.init()
if not frktest.run() then
process.exit(1)
end