test: move to `busted-tl`
This commit is contained in:
parent
5ca672d0ed
commit
e76188f87f
6
.busted
6
.busted
|
@ -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,4 +1,3 @@
|
|||
lua_modules
|
||||
generated
|
||||
build
|
||||
/spec
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
"luasec",
|
||||
"luasocket",
|
||||
"mkdir",
|
||||
"rockspec",
|
||||
"setopt",
|
||||
"Stylua",
|
||||
"tablex",
|
||||
|
|
9
justfile
9
justfile
|
@ -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:
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
local tl = require "tl"
|
||||
tl.loader()
|
||||
require "set_paths"
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
include_dir = {
|
||||
"../src/awesomewm.d.tl",
|
||||
"../types",
|
||||
},
|
||||
global_env_def = "busted",
|
||||
}
|
|
@ -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 = {
|
||||
|
|
|
@ -5,5 +5,4 @@ return {
|
|||
"src/awesomewm.d.tl",
|
||||
"types",
|
||||
},
|
||||
global_env_def = "busted",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue