kiwigrid / gherkin-testcafe

Run testcafe tests with gherkin syntax
MIT License
69 stars 2 forks source link

Improve tags filtering #52

Closed Arthy000 closed 4 years ago

Arthy000 commented 5 years ago

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)

mariogalea commented 4 years ago

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