vscode/test/README.md

32 lines
585 B
Markdown
Raw Normal View History

2015-11-13 14:39:38 +01:00
# Tests
## Run
2015-11-15 21:59:34 +01: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 14:39:38 +01:00
2015-11-15 20:27:56 +01:00
If you wish to run the tests from a terminal, from the `vscode` folder run:
2015-11-16 10:58:51 +01:00
OSX and Linux
2015-11-13 14:39:38 +01:00
2015-11-16 10:58:51 +01:00
./test/run.sh
2015-11-13 14:39:38 +01:00
2015-11-16 10:58:51 +01:00
Windows
test\run
2015-11-13 14:39:38 +01:00
## Debug
2015-11-15 21:59:34 +01: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 14:39:38 +01:00
## Coverage
2015-11-15 21:59:34 +01:00
The following command will create a `coverage` folder at the root of the workspace:
2015-11-13 14:39:38 +01:00
2015-11-16 18:47:22 +01:00
OSX and Linux
./test/run.sh --coverage
Windows
test\run --coverage