-
Notifications
You must be signed in to change notification settings - Fork 23
How to Run or Debug features from intellij
vinaykumarvvs edited this page Jul 6, 2018
·
1 revision
In order to run a feature file or a particular scenario from IntelliJ, you need to perform some basic steps, which are as follows:
-
Launch
IntelliJ
viaTerminal/Command Line
IntelliJ Configuration to launch it from command line -
After opening 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
typespinServices
and clickOK
- Now create one more
Gradle Task
-> InSelect Gradle Task
select a Gradle project (current project) and onTasks
typeoptimusSetup
and add a VM option for this gradle task.-DtestFeed="Name of your json file/Test feed fileName"
and clickOK
- Check the Gradle Tasks order, first
spinServices
and thenoptimusSetup
. If this is not in the order re-arrange it
- 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"