mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
update test/README
This commit is contained in:
parent
d718403074
commit
37b02d8ae4
|
@ -2,9 +2,7 @@
|
|||
|
||||
## Run
|
||||
|
||||
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.
|
||||
|
||||
If you wish to run the tests from a terminal, from the `vscode` folder run:
|
||||
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:
|
||||
|
||||
**OS X and Linux**
|
||||
|
||||
|
@ -14,9 +12,12 @@ If you wish to run the tests from a terminal, from the `vscode` folder run:
|
|||
|
||||
scripts\test
|
||||
|
||||
|
||||
## Debug
|
||||
|
||||
You can use VS Code to debug your tests. Switch to the Debug viewlet, pick the `Unit Tests` debug target and press `Play`.
|
||||
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
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ const events = require('events');
|
|||
const optimist = require('optimist')
|
||||
.describe('grep', 'only run tests matching <pattern>').alias('grep', 'g').alias('grep', 'f').string('grep')
|
||||
.describe('run', 'only run tests from <file>').string('run')
|
||||
.describe('runGlob', 'only run tests matching <file_pattern>').boolean('runGlob').alias('runGrep')
|
||||
.describe('runGlob', 'only run tests matching <file_pattern>').alias('runGlob', 'runGrep').string('runGlob')
|
||||
.describe('build', 'run with build output (out-build)').boolean('build')
|
||||
.describe('coverage', 'generate coverage report').boolean('coverage')
|
||||
.describe('debug', 'open dev tools, keep window open, reuse app data').string('debug')
|
||||
|
|
Loading…
Reference in a new issue