Alex Dima c0b52655ba Fixes #23183: Cannot use mocha --run anymore 7 years ago
..
electron 24590b1d9d test-electron: don't show window when running without --debug 7 years ago
OSSREADME.json 8f35cc4768 Hello Code 8 years ago
README.md 8ad01d69f3 Revert recent wiki changes 8 years ago
all.js c0b52655ba Fixes #23183: Cannot use mocha --run anymore 7 years ago
assert.js 8f35cc4768 Hello Code 8 years ago
browser.js b027a0c492 fix up lint errors, cleanup build folder 8 years ago
index.html 8883fcd03b Leading whitespace fixes 8 years ago
mocha.opts 9f394cd9ea [html] add tests to test.sh 7 years ago

README.md

Tests

Run

The best way to run the Code tests is from within VS Code. Simply pressF1, type "run test" and press enter to launch the tests. To make development changes to unit tests you need to be running gulp. See Development Workflow for more details.

If you wish to run the tests from a terminal, from the vscode folder run:

OS X and Linux

./scripts/test.sh

Windows

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.

Coverage

The following command will create a coverage folder at the root of the workspace:

OS X and Linux

./scripts/test.sh --coverage

Windows

scripts\test --coverage