diff --git a/.gitignore b/.gitignore index 3958b0234..c061a82e1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ litcli-debug # MacOS junk .DS_Store +itest/regtest itest/btcd-itest itest/litd-itest itest/lnd-itest diff --git a/.vscode/launch.json b/.vscode/launch.json index 6e0f47159..a03f65e65 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -4,17 +4,48 @@ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ + { + "name": "Debug itest", + "type": "go", + "request": "launch", + "mode": "test", + "preLaunchTask": "reset before itest", + "program": "${workspaceFolder}/itest", + "env": { + "GOEXPERIMENT": "loopvar", + "GO111MODULE": "on" + }, + "args": [ + "-test.v", + "-test.run=TestLightningTerminal/test_custom_channels", + "-loglevel=trace", + "-btcdexec=./btcd-itest", + "-logdir=${workspaceFolder}/itest/.logs", + "-litdexec=${workspaceFolder}/itest/litd-itest", + ], + "buildFlags": [ + "-tags=dev integration itest autopilotrpc routerrpc signrpc verrpc walletrpc chainrpc invoicesrpc watchtowerrpc wtclientrpc peersrpc btcd monitoring", + ], + "hideSystemGoroutines": true, + }, { "name": "Debug Tests", "type": "node", "request": "launch", "runtimeExecutable": "${workspaceRoot}/app/node_modules/.bin/react-scripts", - "args": ["test", "--runInBand", "--no-cache", "--watchAll=false"], + "args": [ + "test", + "--runInBand", + "--no-cache", + "--watchAll=false" + ], "cwd": "${workspaceRoot}/app/", "protocol": "inspector", "console": "integratedTerminal", "internalConsoleOptions": "neverOpen", - "env": { "CI": "true" }, + "env": { + "CI": "true" + }, "disableOptimisticBPs": true } ]