This feature is supported in Ultimate edition only.
IntelliJ IDEA provides facilities for running JavaScript unit tests against a local or remote test server. You can run test cases, methods, or entire test files.
- Enable JavaScript unit testing support.
- Write the unit tests.
- Mark the folder where the unit tests are stored as a test source folder, see Configuring Content Roots.
- If applicable, write configuration files that define which test and corresponding production files should be loaded into the browser and in which order.
- Start the test server and capture a browser.
- Launch unit tests and monitor test results in the Run tool window.
The topics in this part provide guidelines in JavaScript-specific unit testing procedures.
For general information on testing in IntelliJ IDEA, see the section Testing.