vscode/test/README.md

32 lines
830 B
Markdown
Raw Normal View History

2015-11-13 13:39:38 +00:00
# Tests
## Run
2016-04-22 19:54:32 +00:00
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.
2015-11-13 13:39:38 +00:00
2015-11-15 19:27:56 +00:00
If you wish to run the tests from a terminal, from the `vscode` folder run:
**OS X and Linux**
2015-11-13 13:39:38 +00:00
2016-01-04 11:35:25 +00:00
./scripts/test.sh
2015-11-13 13:39:38 +00:00
**Windows**
2015-11-16 09:58:51 +00:00
2016-01-04 11:35:25 +00:00
scripts\test
2015-11-13 13:39:38 +00:00
## Debug
2015-11-15 20:59:34 +00:00
You can use VS Code to debug your tests. Switch to the Debug viewlet, pick the `Unit Tests` debug target and press `Play`.
2015-11-13 13:39:38 +00:00
## Coverage
2015-11-15 20:59:34 +00:00
The following command will create a `coverage` folder at the root of the workspace:
2015-11-13 13:39:38 +00:00
**OS X and Linux**
2015-11-16 17:47:22 +00:00
2016-01-04 11:35:25 +00:00
./scripts/test.sh --coverage
2015-11-16 17:47:22 +00:00
**Windows**
2015-11-16 17:47:22 +00:00
2016-01-04 11:35:25 +00:00
scripts\test --coverage