- Write the unit tests.
- To have WebStorm recognize the unit tests and detect the corresponding production source code, mark the folder where the unit tests are stored as test folder.
- 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.
For general information on testing in WebStorm, see the section Testing.