webdriverio-boneyard / wdio-cucumber-framework

A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
MIT License
77 stars 61 forks source link

tagExpression vs tags for scenario filtering #132

Open gasparnagy opened 6 years ago

gasparnagy commented 6 years ago

The Cucumber.js CLI API has been using the --tagExpression option to filter the scenarios to be executed.

The API has been changed (in v4?), and it is using the more clean (?) --tags option for the same filtering. (see https://github.com/cucumber/cucumber-js/blob/master/docs/cli.md#tags)

The wdio-cucumber-framework has been using a similar option (tagExpression) for the filtering that has been also changed to tags (intentionally?). In the current released version (v2.1.0), the filtering has to be done like that.

The merged PR #127 reverts the setting back to tagExpression and I was wondering if this is really good or not. What is better: keeping the compatible setting (tagExpression) but get out of sync with cucumber.js or make the breaking change and be in sync with cucumber.js...