Learn how you can run features from intellij.
In order to run a feature file or a particular scenario from IntelliJ, you need to perform some basic steps, which are as follows:
- Open IntelliJ and select
Run/Debug Configuration
and selectEdit Configurations...
- Now Select
Defaults
from theRun/Debug Configuration
window and chooseCucumber Java
- On right-hand side in
Before Launch
section add a new configuration by clicking on it and selectingRun Gradle Task
- In
Select Gradle Task
select a Gradle project (current project) and onTasks
typeoptimusSetup
and clickOK
- Add a VM option for this gradle task.
-DtestFeed="Name of your json file/Test feed fileName"
- Next on
Run/Debug Configuration
windows provide Glue as steps and VM Options as
-DtestFeed="Name of your json file/Test feed fileName" -DrunMode="Fragmentation/Distribution"