Skip to content

Commit 09e5688

Browse files
committed
chore: configure lldebugger for tests
1 parent 87a7677 commit 09e5688

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"keygrabber",
2424
"ldoc",
2525
"leafo",
26+
"lldebugger",
2627
"luacheck",
2728
"luacheckrc",
2829
"luadoc",

.vscode/launch.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Busted",
9+
"type": "lua-local",
10+
"request": "launch",
11+
"program": {
12+
"command": "luarocks"
13+
},
14+
"args": ["test"]
15+
// "ignorePatterns": "^/usr"
16+
}
17+
]
18+
}

spec/helper.lua

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
-- Enable lua-local-debugger
2+
-- https://github.com/tomblind/local-lua-debugger-vscode
3+
if os.getenv "LOCAL_LUA_DEBUGGER_VSCODE" == "1" then
4+
require("lldebugger").start()
5+
end
6+
17
-- Fake awesome modules
28
package.loaded["gears.table"] = {
39
hasitem = function(t, item)

0 commit comments

Comments
 (0)