WebStorm 2019.3 Help

Creating run/debug configurations for tests

You can run your tests (test cases, test suites, and so on) using run/debug configurations, in the way similar to running ordinary applications. WebStorm provides a framework for creating special run/debug configurations for testing purposes, where a test can be specified as a target.

Create a test configuration

  1. Open the Run/Debug Configuration dialog by doing one of the following:

    • From the main menu, choose Run | Edit Configurations.

    • Press Shift+Alt+F10 and select Edit Configuration from the context menu.

  2. Click Add New Configuration on the toolbar and select the desired configuration type:
    Creating a run/debug configuration for test: selecting the configuration type
  3. In the dialog that opens, specify the test scope, configuration parameters, and activities to perform before test execution. Apply the changes and close the dialog.

Last modified: 17 February 2020