cucumber-boilerplate icon indicating copy to clipboard operation
cucumber-boilerplate copied to clipboard

Multiple Cucumber tags are not working using command line

Open vinodkpasi opened this issue 4 years ago • 2 comments

Issue description

Multiple Cucumber tags are not working using command line

Steps to reproduce

npx wdio run .\test\wdio.conf.ts --cucumberOpts.tagExpression='@a or @b'

Expected behavior

Feature files those are tagged with "@a" or "@b" must run

Actual behavior

Feature files those are tagged with "@a" are running. So runner considering the first tag only

Issue occurred on browser/platform

I am using latest version of webdriver with cucumber framework.

vinodkpasi avatar Jan 26 '22 06:01 vinodkpasi

@vinodkpasi does it work if you apply tagExpression in your wdio.config directly?

christian-bromann avatar Jan 26 '22 08:01 christian-bromann

if we apply tagExpression in wdio.config directly then it is working fine.

                          tagExpression: '@A or @b'

vinodkpasi avatar Feb 01 '22 18:02 vinodkpasi