chore: configure tests in luarocks
This commit is contained in:
parent
1ac471da89
commit
a036df9c5f
|
@ -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",
|
||||
}
|
||||
|
|
6
justfile
6
justfile
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue