Preparing to Use JSTestDriver Test Runner
On this page:
Configuring the JSTestDriver test runner
You do not need to download the JSTestDriver framework manually. The server and the assertion framework are provided through the JSTestDriver plugin. The plugin is bundled with WebStorm and activated by default. If it is not, enable the plugin.
This plugin does the following:
- Runs the JSTestDriver server that captures an opened browser to execute tests in.
Configuring testing frameworks in a project
Do one of the following:
- Add the project folder to the library scope.
- Enable the framework support on-the-fly during test creation. Write the test as required, position the cursor at it, and press Alt+Enter. Then choose the Add <test framework> support intention action from the list.
To use Jasmine, add
jasmine-jstd-adapterto the configuration file.
load: lib/jasmine/jasmine.js lib/jasmine-jstd-adapter/JasmineAdapter.js