Skip to content

Commit 2fa35f0

Browse files
ZZiigguurraattZZiigguurraatt
authored andcommitted
better document launch.json
1 parent bb21c3c commit 2fa35f0

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.vscode/launch.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
"version": "0.2.0",
66
"configurations": [
7+
8+
////////////////////////////////
9+
// golang itest example
10+
////////////////////////////////
711
{
8-
"name": "Debug itest",
12+
"name": "single itest example (test_custom_channels)",
913
"type": "go",
1014
"request": "launch",
1115
"mode": "test",
@@ -16,7 +20,16 @@
1620
},
1721
"args": [
1822
"-test.v",
23+
24+
// Find test names to run in `itest/litd_test_list_on_test.go` and
25+
// then replace ` ` (spaces) with `_` (underscores).
26+
// i.e. "test custom channels" --> "test_custom_channels"
27+
// Some related examples of how to choose multiple tests to run at the
28+
// same time as well as how to run tests outside of vscode can be
29+
// found at:
30+
// https://github.com/lightningnetwork/lnd/blob/master/itest/README.md
1931
"-test.run=TestLightningTerminal/test_custom_channels",
32+
2033
"-logoutput",
2134
"-logdir=${workspaceFolder}/itest/.logs",
2235
"-litdexec=${workspaceFolder}/itest/litd-itest",
@@ -26,8 +39,14 @@
2639
"-tags=dev integration itest lowscrypt litd autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc neutrinorpc peersrpc",
2740
],
2841
},
42+
43+
44+
////////////////////////////////
45+
// react GUI tests
46+
////////////////////////////////
47+
2948
{
30-
"name": "Debug Tests",
49+
"name": "react Debug Tests",
3150
"type": "node",
3251
"request": "launch",
3352
"runtimeExecutable": "${workspaceRoot}/app/node_modules/.bin/react-scripts",

0 commit comments

Comments
 (0)