logical AND tags in cucumberoptions annotation

21 views
Skip to first unread message

Martin Patton

unread,
Sep 12, 2016, 6:07:29 PM9/12/16
to Cukes
Hi,

According to the documentation it is possible to use logical AND filtering to run a subset of scenarios by specifying the --tags parameter multiple times.

I have been trying to do the same within a @cucumberOptions annotation:-

@CucumberOptions(

//features = {"src/featureFiles/m2e2e.feature"},
features = {"src/featureFiles"},

glue = {"com.tibco.bpm.e2e.rest.test"},

plugin = {"pretty", "junit:target/test-report.xml"},

snippets = cucumber.api.SnippetType.CAMELCASE,

strict = true,
dryRun = true,
tags = "@organization"

}

Can anyone tell me if there is a way of doing this? 

I cannot define tags multiple times as I get a duplicate problem marker within eclipse.

Regards,
Martin

Björn Rasmusson

unread,
Sep 13, 2016, 1:44:41 PM9/13/16
to Cukes
Martin Patton wrote:
Hi,

According to the documentation it is possible to use logical AND filtering to run a subset of scenarios by specifying the --tags parameter multiple times.

I have been trying to do the same within a @cucumberOptions annotation:-

@CucumberOptions(

//features = {"src/featureFiles/m2e2e.feature"},
features = {"src/featureFiles"},

glue = {"com.tibco.bpm.e2e.rest.test"},

plugin = {"pretty", "junit:target/test-report.xml"},

snippets = cucumber.api.SnippetType.CAMELCASE,

strict = true,
dryRun = true,
tags = "@organization"

}

Can anyone tell me if there is a way of doing this? 
Hi,

You should do what you are already doing for the plugin option, that means:
      tags = {"@organisation", "@another_tag"}

Regards
Björn

 
Reply all
Reply to author
Forward
0 new messages