Skip to content

Commit c0e0097

Browse files
ZZiigguurraattZZiigguurraatt
ZZiigguurraatt
authored and
ZZiigguurraatt
committed
launch.json: add "run all itests"
1 parent cda0c2b commit c0e0097

File tree

1 file changed

+29
-4
lines changed

1 file changed

+29
-4
lines changed

.vscode-samples/launch.json

+29-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"args": [
2222
"-test.v",
2323

24-
// Find test names to run in `itest/litd_test_list_on_test.go` and
24+
// Find itest names to run in `itest/litd_test_list_on_test.go` and
2525
// then replace ` ` (spaces) with `_` (underscores).
2626
// 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
27+
// Some related examples of how to choose multiple itests to run at the
28+
// same time as well as how to run itests outside of vscode can be
2929
// found at:
3030
// https://github.com/lightningnetwork/lnd/blob/master/itest/README.md
3131
"-test.run=TestLightningTerminal/test_custom_channels",
@@ -42,9 +42,34 @@
4242

4343

4444
////////////////////////////////
45-
// react GUI tests
45+
// run all golang itests
4646
////////////////////////////////
47+
{
48+
"name": "run all itests",
49+
"type": "go",
50+
"request": "launch",
51+
"mode": "test",
52+
"preLaunchTask": "reset before itest",
53+
"program": "${workspaceFolder}/itest",
54+
"env": {
55+
"CGO_ENABLED": "0",
56+
},
57+
"args": [
58+
"-test.v",
59+
"-logoutput",
60+
"-logdir=${workspaceFolder}/itest/.logs",
61+
"-litdexec=${workspaceFolder}/itest/litd-itest",
62+
],
63+
"buildFlags": [
64+
"-ldflags=-X github.com/lightningnetwork/lnd/build.RawTags=chainrpc,walletrpc,signrpc,invoicesrpc,autopilotrpc,watchtowerrpc,twclientrpc -X github.com/lightningnetwork/lnd/build.Commit=lightning-terminal-v0.4.0-alpha -X github.com/lightninglabs/loop.Commit=localbuild -X github.com/lightninglabs/pool.Commit=localbuild -X github.com/lightninglabs/lightning-terminal.Commit=localbuild",
65+
"-tags=dev integration itest lowscrypt litd autopilotrpc signrpc walletrpc chainrpc invoicesrpc watchtowerrpc neutrinorpc peersrpc",
66+
],
67+
},
68+
4769

70+
////////////////////////////////
71+
// react GUI tests
72+
////////////////////////////////
4873
{
4974
"name": "react Debug Tests",
5075
"type": "node",

0 commit comments

Comments
 (0)