test: move to `busted-tl`
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2023-04-24 00:14:32 +02:00
parent 5ca672d0ed
commit e76188f87f
10 changed files with 15 additions and 16 deletions

View File

@ -1,6 +1,8 @@
-- Adds the sources to Lua's path so that busted can find all the modules
require "set_paths"
return {
default = {
-- lua = "tl run",
helper = "run-busted.lua",
loaders = { "teal" },
},
}

1
.gitignore vendored
View File

@ -1,4 +1,3 @@
lua_modules
generated
build
/spec

View File

@ -29,6 +29,7 @@
"luasec",
"luasocket",
"mkdir",
"rockspec",
"setopt",
"Stylua",
"tablex",

View File

@ -46,15 +46,8 @@ validate:
--global-env-def "global_env" \
`find . -type f -iname '*.d.tl' | xargs`
test: build
rm -rf spec
mv build/spec spec
test:
busted
# luarocks \
# --lua-version {{ lua_version }} \
# test \
# --tree {{ rocks_tree }} \
# {{ rockspec_file }}
# TODO : how to run a debugger on Teal code?
debug:

View File

@ -1,3 +0,0 @@
local tl = require "tl"
tl.loader()
require "set_paths"

7
spec/tlconfig.lua Normal file
View File

@ -0,0 +1,7 @@
return {
include_dir = {
"../src/awesomewm.d.tl",
"../types",
},
global_env_def = "busted",
}

View File

@ -19,7 +19,8 @@ end
local property: Property = {
-- base_url = "https://awesomewm.org/apidoc",
base_url = "file:///usr/share/doc/awesome/doc",
-- base_url = "file:///usr/share/doc/awesome/doc",
base_url = "file:///home/aireone/documents/prog/awesome/build/doc",
index_uri = "/index.html",
out_directory = "generated",
capi_modules = {

View File

@ -5,5 +5,4 @@ return {
"src/awesomewm.d.tl",
"types",
},
global_env_def = "busted",
}