Alex.Sang
Alex.Sang

Reputation: 41

cucumber (in Java): How can I run scenarios with both tags only

I have some feature files with multiple tags for each scenario. But I would like to run those who has both @a AND @b scenarios. How can I do that?

    tags = {"@a, @b"},  --> this will do @a OR @b scenarios

Thanks.

Upvotes: 2

Views: 252

Answers (1)

Alex.Sang
Alex.Sang

Reputation: 41

I figured it out: tags = {"@a, @b"}, --> this will do @a OR @b scenarios tags = {"@a", "@b"}, --> this will do @a AND @b scenarios

Upvotes: 1

Related Questions