trivago/cucable-plugin

Cucumber Tags and and Or

Hanumanthap24 opened this issue · 8 comments

Hi ,

I have a scenario like this.

My Feature file:
@us1
Feature:My feature

Scenario outline:Tc1
Given
When
Then

@env
Examples:

@Env2
Examples:

@env3:
Examples

And When i run my test cases like

mvn verify -Dtags="@us1 and @env"

This will run all the test cases under the folder in which my feature file resides and not this feature file alone.
Could you tell me if this is not the correct way using and & Or.

Hello, "tags" is not a Cucable option.
It is all described in the documentation:
https://github.com/trivago/cucable-plugin#includescenariotags

Xml.txt

Please find my xml attached.

I have included my tags in XML..When i run my test cases
mvn clean verify -U -s settings.xml DrunParallelTests="true"

,in the logs it says.

[INFO] Cucable created 0 separate feature files and 0 runners.

If I run with only one tag like @us1,my test runs all the test cases in the feature file.

What is the mistake here?

(@us1 and @env) and not @Env2

says: run scenarios that have both us1 and env tags and not env2. Do you have scenarios that match this?

Yes.As you see my in the first question I asked,My feature file tag name is @us1,and parameters are @env and @env2..
I am interested in executing all test cases in feature file with @env parameters(Examples).

Not only that,I have assigned a tag to scenario as below,

@test1
Scenario outline:Tc1
Given
When
Then

@env
Examples:

@Env2
Examples:

and exeucted like @test1 and @env in include scenario tags,but says

[INFO] Cucable created 0 separate feature files and 0 runners.

Hi again, alright, I will investigate this. Maybe you found a bug there :-)

Yes it seems you did find a bug. I will try to fix it for the next release.

When can we have this feature?Just need approx date.

I merged and released this 2 weeks ago (see above).