chore: configure tests in luarocks

This commit is contained in:
Aire-One 2023-09-18 12:22:05 +02:00
parent 1ac471da89
commit a036df9c5f
2 changed files with 12 additions and 1 deletions

View File

@ -18,6 +18,13 @@ dependencies = {
"luasec 1.2.0-1",
"luafilesystem 1.8.0-1",
}
test_dependencies = {
"busted",
"busted-tl"
}
test = {
type = "busted",
}
build_dependencies = {
"cyan",
}

View File

@ -57,7 +57,11 @@ validate:
# `find . -type f -iname '*.d.tl' | xargs`
test PATTERN="_spec":
busted --pattern={{ PATTERN }}
luarocks \
--lua-version {{ lua_version }} \
test \
{{ rockspec_file }} \
-- --pattern={{ PATTERN }}
# Requires a patched version of luacov (https://github.com/lunarmodules/luacov/issues/98#issuecomment-1530491759)
coverage: