IntelliJ IDEA 13.1.0 Web Help

The Cucumber feature files are run same way as the other executables, with certain run/debug configuration settings.

Prior to running a test, you have to set up run/debug configuration for a particular feature file or scenario, or for the whole bunch of features within a directory. Creating a run/debug configuration is described in the section Creating and Editing Run/Debug Configurations.

Warning

Do not forget to specify the package where step definitions are stored. To do that, in the Glue field of the Edit Run/Debug Configuration dialog box, specify the name of the package in question, or click the browse button to locate it on project.

However, there is always the possibility to run Cucumber tests with the default settings, which is described below.

Results of tests execution are displayed in the Test Runner tab of the Run tool window.

To run all feature files in a directory
  1. In the Project tool window, right-click the directory where the feature files are stored.
  2. On the context menu of the directory, choose Run all features in <directory name>.
To run a feature
  1. In the Project tool window, right-click the desired feature file, or open it in the editor.
  2. On the context menu of the feature file, choose Run Feature <name>.
To run a scenario
  1. In the Project tool window, right-click the desired feature file, or open it in the editor.
  2. On the context menu of the desired scenario, point to Run, and then choose Run Scenario <name>.

See Also

Concepts:

Reference:

Web Resources: