diff --git a/.vscode/launch.json b/.vscode/launch.json index dad13e8..6b867cd 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,7 +20,7 @@ }, "args": [ "test", - "_spec" // Adapt to the spec to debug + "\"--pattern _spec --tags debug\"" ], "scriptFiles": ["${workspaceFolder}/**/*.tl"] } diff --git a/justfile b/justfile index 5fbf8d6..772de37 100644 --- a/justfile +++ b/justfile @@ -64,12 +64,12 @@ validate: check \ awesomerc.tl -test PATTERN="_spec": +test PARAMETERS="--pattern=_spec": luarocks \ --lua-version {{ lua_version }} \ test \ {{ rockspec_file }} \ - -- --pattern={{ PATTERN }} + -- {{ PARAMETERS }} local-test PATTERN="_spec": luarocks \ diff --git a/spec/scraper/module_doc_spec.tl b/spec/scraper/module_doc_spec.tl index b01a74c..94f5d22 100644 --- a/spec/scraper/module_doc_spec.tl +++ b/spec/scraper/module_doc_spec.tl @@ -27,6 +27,7 @@ describe("Scrap documentation", function() name = "Empty", module_path = "empty", dependencies = {}, + global = false, token = "module", })) @@ -89,6 +90,7 @@ describe("Scrap documentation", function() name = "Property_signal", module_path = "property_signal", dependencies = {}, + global = false, token = "module", })) @@ -202,6 +204,7 @@ describe("Scrap documentation", function() name = "Property_enum", module_path = "property_enum", dependencies = {}, + global = false, token = "module", })) @@ -244,6 +247,7 @@ describe("Scrap documentation", function() name = "Property_string", module_path = "property_string", dependencies = {}, + global = false, token = "module", })) @@ -311,6 +315,7 @@ describe("Scrap documentation", function() name = "Tag", module_path = "awful.tag", dependencies = {}, + global = false, token = "module", })) @@ -363,6 +368,7 @@ describe("Scrap documentation", function() name = "Signal", module_path = "signal", dependencies = {}, + global = false, token = "module", })) @@ -450,7 +456,7 @@ describe("Scrap documentation", function() token = "variable", }, }, - return_types = { "boolean" }, + return_types = { { "boolean" }}, name = "kill", token = "function", } @@ -458,10 +464,11 @@ describe("Scrap documentation", function() name = "Awesome", module_path = "awesome", dependencies = {}, + global = false, token = "module", })) - it("should produce a Record node when a function parameter is a named-parameter-table", test( + it("should produce a Record node when a function parameter is a named-parameter-table #debug", test( [[