vscode/test/README.md

25 lines
633 B
Markdown
Raw Normal View History

2015-11-13 21:39:38 +08:00
# Tests
## Run
2015-11-16 04:59:34 +08:00
The best way to run the Code tests is from within VS Code. Simply press `CMD+Shift+T` (`Ctrl+Shift+T` on Windows) to launch the tests.
2015-11-13 21:39:38 +08:00
2015-11-16 03:27:56 +08:00
If you wish to run the tests from a terminal, from the `vscode` folder run:
cd vscode
2015-11-13 21:39:38 +08:00
mocha
2015-11-16 04:59:34 +08:00
Alternatively, you can run them from any browser. Simply open the URL provided by the following command:
2015-11-13 21:39:38 +08:00
2015-11-16 03:27:56 +08:00
cd vscode
2015-11-13 21:39:38 +08:00
mocha --browser
## Debug
2015-11-16 04:59:34 +08: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 21:39:38 +08:00
## Coverage
2015-11-16 04:59:34 +08:00
The following command will create a `coverage` folder at the root of the workspace:
2015-11-13 21:39:38 +08:00
mocha --coverage