Skip to content

Commit 37b02d8

Browse files
committed
update test/README
1 parent d718403 commit 37b02d8

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

test/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
## Run
44

5-
The best way to run the Code tests is from within VS Code. Simply press<kbd>F1</kbd>, type "run test" and press <kbd>enter</kbd> to launch the tests. To make development changes to unit tests you need to be running `gulp`. See [Development Workflow](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#incremental-build) for more details.
6-
7-
If you wish to run the tests from a terminal, from the `vscode` folder run:
5+
The best way to run the Code tests is from the terminal. To make development changes to unit tests you need to be running `gulp`. See [Development Workflow](https://github.com/Microsoft/vscode/wiki/How-to-Contribute#incremental-build) for more details. From the `vscode` folder run:
86

97
**OS X and Linux**
108

@@ -14,9 +12,12 @@ If you wish to run the tests from a terminal, from the `vscode` folder run:
1412

1513
scripts\test
1614

15+
1716
## Debug
1817

19-
You can use VS Code to debug your tests. Switch to the Debug viewlet, pick the `Unit Tests` debug target and press `Play`.
18+
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:
19+
20+
./scripts/test.sh --debug --runGrep **/extHost*.test.js
2021

2122
## Coverage
2223

test/electron/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const events = require('events');
1313
const optimist = require('optimist')
1414
.describe('grep', 'only run tests matching <pattern>').alias('grep', 'g').alias('grep', 'f').string('grep')
1515
.describe('run', 'only run tests from <file>').string('run')
16-
.describe('runGlob', 'only run tests matching <file_pattern>').boolean('runGlob').alias('runGrep')
16+
.describe('runGlob', 'only run tests matching <file_pattern>').alias('runGlob', 'runGrep').string('runGlob')
1717
.describe('build', 'run with build output (out-build)').boolean('build')
1818
.describe('coverage', 'generate coverage report').boolean('coverage')
1919
.describe('debug', 'open dev tools, keep window open, reuse app data').string('debug')

0 commit comments

Comments
 (0)