Skip to content

Commit

Permalink
chore: configure lldebugger for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Aire-One committed Nov 27, 2024
1 parent 87a7677 commit 09e5688
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"keygrabber",
"ldoc",
"leafo",
"lldebugger",
"luacheck",
"luacheckrc",
"luadoc",
Expand Down
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Busted",
"type": "lua-local",
"request": "launch",
"program": {
"command": "luarocks"
},
"args": ["test"]
// "ignorePatterns": "^/usr"
}
]
}
6 changes: 6 additions & 0 deletions spec/helper.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-- Enable lua-local-debugger
-- https://github.com/tomblind/local-lua-debugger-vscode
if os.getenv "LOCAL_LUA_DEBUGGER_VSCODE" == "1" then
require("lldebugger").start()
end

-- Fake awesome modules
package.loaded["gears.table"] = {
hasitem = function(t, item)
Expand Down

0 comments on commit 09e5688

Please sign in to comment.