2015-11-13 21:39:38 +08:00
|
|
|
# Tests
|
|
|
|
|
|
|
|
## Run
|
|
|
|
|
|
|
|
You can run tests directly from the command line:
|
|
|
|
|
|
|
|
mocha
|
|
|
|
|
|
|
|
Alternatively, you can run them from any browser. Simply
|
|
|
|
open the URL provided by the following command:
|
|
|
|
|
|
|
|
mocha --browser
|
|
|
|
|
|
|
|
## Debug
|
|
|
|
|
2015-11-15 23:17:32 +08:00
|
|
|
You can use VS Code to debug your tests. Switch to the Debug viewlet,
|
|
|
|
pick the `Mocha` debug target and press `Play`.
|
2015-11-13 21:39:38 +08:00
|
|
|
|
|
|
|
## Coverage
|
|
|
|
|
2015-11-15 23:17:32 +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
|