Shabar
Shabar

Reputation: 2823

Pass Cucumber feature parameters in IntelliJ IDE

I just wondering how can I set Cucumber test parameters when running them directly in IntelliJ

IntelliJ version - 13.0.1
Gradle 1.5 

I tried to set them via Edit Configuration, not worked though

The way I pass them when run in command line is as below. It's working fine.

$gradle cucumber -Ptags=@<Scenario Name> -Penv=<Running test env.>

As we can run the Feature scenario directly in IDE, The first parameter of course no need to pass. The question is the second one.

Appreciate your response.

Upvotes: 1

Views: 2120

Answers (1)

Opal
Opal

Reputation: 84784

You can create an appropriate configuration for all as well single test. Here is how to do it. In configuration window there'll be field 'Program arguments'. This is where You can pass required arguments.

Upvotes: 1

Related Questions