|
21 | 21 | "args": [
|
22 | 22 | "-test.v",
|
23 | 23 |
|
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 |
25 | 25 | // then replace ` ` (spaces) with `_` (underscores).
|
26 | 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 |
| 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 |
29 | 29 | // found at:
|
30 | 30 | // https://github.com/lightningnetwork/lnd/blob/master/itest/README.md
|
31 | 31 | "-test.run=TestLightningTerminal/test_custom_channels",
|
|
42 | 42 |
|
43 | 43 |
|
44 | 44 | ////////////////////////////////
|
45 |
| - // react GUI tests |
| 45 | + // run all golang itests |
46 | 46 | ////////////////////////////////
|
| 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 | + |
47 | 69 |
|
| 70 | + //////////////////////////////// |
| 71 | + // react GUI tests |
| 72 | + //////////////////////////////// |
48 | 73 | {
|
49 | 74 | "name": "react Debug Tests",
|
50 | 75 | "type": "node",
|
|
0 commit comments