diff --git a/awesomewmdtl-dev-1.rockspec b/awesomewmdtl-dev-1.rockspec index 8d1a48b..aaffe00 100644 --- a/awesomewmdtl-dev-1.rockspec +++ b/awesomewmdtl-dev-1.rockspec @@ -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", } diff --git a/justfile b/justfile index 80746f5..3b9bee4 100644 --- a/justfile +++ b/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: