Skip to content

Commit 2d313c9

Browse files
committed
consolidate debug test instructions
1 parent b8dc240 commit 2d313c9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

test/unit/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ All unit tests are run inside a electron-browser environment which access to DOM
99
- use the `--debug` to see an electron window with dev tools which allows for debugging
1010
- to run only a subset of tests use the `--run` or `--glob` options
1111

12+
For instance, `./scripts/test.sh --debug --glob **/extHost*.test.js` runs all tests from `extHost`-files and enables you to debug them.
13+
1214
## Run (inside browser)
1315

1416
yarn test-browser --browser webkit --browser chromium
@@ -24,11 +26,6 @@ Unit tests from layers `common` and `browser` are run inside `chromium`, `webkit
2426

2527
yarn run mocha --run src/vs/editor/test/browser/controller/cursor.test.ts
2628

27-
## Debug
28-
29-
To debug tests use `--debug` when running the test script. Also, the set of tests can be reduced with the `--run` and `--runGlob` flags. Both require a file path/pattern. Like so:
30-
31-
./scripts/test.sh --debug --runGrep **/extHost*.test.js
3229

3330
## Coverage
3431

0 commit comments

Comments
 (0)