Run Cucumber tests
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 Create and edit run/debug configurations.
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
In the Project tool window, right-click the directory where the feature files are stored.
On the context menu of the directory, choose
.
To run a feature
In the Project tool window, right-click the desired feature file, or open it in the editor.
On the context menu of the feature file, choose
.
To run a scenario
In the Project tool window, right-click the desired feature file, or open it in the editor.
On the context menu of the desired scenario, point to
choose .