kiwigrid/gherkin-testcafe

Improve tags filtering

Closed this issue · 1 comments

Hello,

At the moment, a test is included if any of the including tags is present.

Example:

@tag1 @tag2
Scenario1: ...

@tag1
Scenario2: ...

@tag2
Scenario3: ...

Using runner.tags('@tag1','@tag2'), all 3 scenarios would run.

I'd like to be able to use runner.tags('@tag1 AND @tag2') to only include Scenario1 in the test run.
I haven't found any way to do this with gherkin-testcafe, though the possibility exists in Cucumber (https://cucumber.io/docs/cucumber/api/#tag-expressions)

This would be a very ideal addition to the Tagging functionality.