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:

  1. Open IntelliJ and select Run/Debug Configuration and select Edit Configurations...

  1. Now Select Defaults from the Run/Debug Configuration window and choose Cucumber Java

  1. On right-hand side in Before Launch section add a new configuration by clicking on it and selecting Run Gradle Task

  1. In Select Gradle Task select a Gradle project (current project) and on Tasks type optimusSetup and click OK

  1. Add a VM option for this gradle task. -DtestFeed="Name of your json file/Test feed fileName"

  1. 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"