small medium large xlarge

09 Nov 2016, 12:45
Dave Pointon (2 posts)

Although I know I can access the tags associated with features & scenarios from within step definitions, is it possible to access the tag(s), if any, defined on the command line from within step definitions ? I’d rather run tests based on defined tags rather than defining an environment variable to essentially perform the same, or similar, duty.

Many TIA ,

Dave P

09 Nov 2016, 20:14
Aslak Hellesøy (17 posts)

Hi Dave,

There is currently no way to access the tags passed to the command line. I’m not sure what you’re hoping to achieve if you could.

I suggest posting a question to the Cucumber mailing list ( and describe what you’re trying to achieve. There are many people there who may be able to help you.

Cheers, Aslak

10 Nov 2016, 17:32
Dave Pointon (2 posts)

TFT Aslak - will do

You must be logged in to comment