consolidate debug test instructions
This commit is contained in:
parent
b8dc2402a1
commit
2d313c9aef
|
@ -9,6 +9,8 @@ All unit tests are run inside a electron-browser environment which access to DOM
|
||||||
- use the `--debug` to see an electron window with dev tools which allows for debugging
|
- use the `--debug` to see an electron window with dev tools which allows for debugging
|
||||||
- to run only a subset of tests use the `--run` or `--glob` options
|
- to run only a subset of tests use the `--run` or `--glob` options
|
||||||
|
|
||||||
|
For instance, `./scripts/test.sh --debug --glob **/extHost*.test.js` runs all tests from `extHost`-files and enables you to debug them.
|
||||||
|
|
||||||
## Run (inside browser)
|
## Run (inside browser)
|
||||||
|
|
||||||
yarn test-browser --browser webkit --browser chromium
|
yarn test-browser --browser webkit --browser chromium
|
||||||
|
@ -24,11 +26,6 @@ Unit tests from layers `common` and `browser` are run inside `chromium`, `webkit
|
||||||
|
|
||||||
yarn run mocha --run src/vs/editor/test/browser/controller/cursor.test.ts
|
yarn run mocha --run src/vs/editor/test/browser/controller/cursor.test.ts
|
||||||
|
|
||||||
## Debug
|
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
||||||
./scripts/test.sh --debug --runGrep **/extHost*.test.js
|
|
||||||
|
|
||||||
## Coverage
|
## Coverage
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue