|
| 1 | +{ |
| 2 | + // **NOTE** |
| 3 | + // For the tests to succeed if you are stepping through code, you need to |
| 4 | + // update the timeout value of the individual test suite you wish to debug. |
| 5 | + // |
| 6 | + // For example, if you want to test `tests/unit/core/metrics/timing_distribution.spec.ts`, |
| 7 | + // at the top of the `describe` callback, you need to add this line. |
| 8 | + // |
| 9 | + // `this.timeout(10000000);` |
| 10 | + // |
| 11 | + // This allows you to step through your tests and inspect values without |
| 12 | + // having them fail due to timeout. |
| 13 | + // |
| 14 | + // |
| 15 | + // |
| 16 | + // Use IntelliSense to learn about possible attributes. |
| 17 | + // Hover to view descriptions of existing attributes. |
| 18 | + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| 19 | + "version": "0.2.0", |
| 20 | + "configurations": [ |
| 21 | + { |
| 22 | + "type": "node", |
| 23 | + "request": "launch", |
| 24 | + "name": "Integration Tests", |
| 25 | + "cwd": "${workspaceFolder}/glean", |
| 26 | + "runtimeArgs": [ |
| 27 | + "${workspaceFolder}/glean/node_modules/ts-mocha/bin/ts-mocha", |
| 28 | + "--experimental-modules", |
| 29 | + "--experimental-specifier-resolution=node", |
| 30 | + "--loader=ts-node/esm", |
| 31 | + "${workspaceFolder}/glean/tests/integration/**/*.spec.ts", |
| 32 | + "--recursive" |
| 33 | + ], |
| 34 | + "console": "integratedTerminal" |
| 35 | + }, |
| 36 | + { |
| 37 | + "type": "node", |
| 38 | + "request": "launch", |
| 39 | + "name": "Unit:Core Tests", |
| 40 | + "cwd": "${workspaceFolder}/glean", |
| 41 | + "runtimeArgs": [ |
| 42 | + "${workspaceFolder}/glean/node_modules/ts-mocha/bin/ts-mocha", |
| 43 | + "--experimental-modules", |
| 44 | + "--experimental-specifier-resolution=node", |
| 45 | + "--loader=ts-node/esm", |
| 46 | + "${workspaceFolder}/glean/tests/unit/core/**/*.spec.ts", |
| 47 | + "--recursive" |
| 48 | + ], |
| 49 | + "console": "integratedTerminal" |
| 50 | + }, |
| 51 | + { |
| 52 | + "type": "node", |
| 53 | + "request": "launch", |
| 54 | + "name": "Unit:Plugins Tests", |
| 55 | + "cwd": "${workspaceFolder}/glean", |
| 56 | + "runtimeArgs": [ |
| 57 | + "${workspaceFolder}/glean/node_modules/ts-mocha/bin/ts-mocha", |
| 58 | + "--experimental-modules", |
| 59 | + "--experimental-specifier-resolution=node", |
| 60 | + "--loader=ts-node/esm", |
| 61 | + "${workspaceFolder}/glean/tests/unit/plugins/**/*.spec.ts", |
| 62 | + "--recursive" |
| 63 | + ], |
| 64 | + "console": "integratedTerminal" |
| 65 | + }, |
| 66 | + { |
| 67 | + "type": "node", |
| 68 | + "request": "launch", |
| 69 | + "name": "Unit:Plugins Tests", |
| 70 | + "cwd": "${workspaceFolder}/glean", |
| 71 | + "runtimeArgs": [ |
| 72 | + "${workspaceFolder}/glean/node_modules/ts-mocha/bin/ts-mocha", |
| 73 | + "--experimental-modules", |
| 74 | + "--experimental-specifier-resolution=node", |
| 75 | + "--loader=ts-node/esm", |
| 76 | + "${workspaceFolder}/glean/tests/unit/platform/**/*.spec.ts", |
| 77 | + "--recursive" |
| 78 | + ], |
| 79 | + "console": "integratedTerminal" |
| 80 | + }, |
| 81 | + { |
| 82 | + "type": "node", |
| 83 | + "request": "launch", |
| 84 | + "name": "Individual Test Template", |
| 85 | + "cwd": "${workspaceFolder}/glean", |
| 86 | + "runtimeArgs": [ |
| 87 | + "${workspaceFolder}/glean/node_modules/ts-mocha/bin/ts-mocha", |
| 88 | + "--experimental-modules", |
| 89 | + "--experimental-specifier-resolution=node", |
| 90 | + "--loader=ts-node/esm", |
| 91 | + "${workspaceFolder}/glean/tests/unit/core/metrics/timing_distribution.spec.ts" |
| 92 | + ], |
| 93 | + "console": "integratedTerminal" |
| 94 | + } |
| 95 | + ] |
| 96 | +} |
0 commit comments