How to execute Multiple cucumber feature files using tags

user3486694 picture user3486694 · Jun 16, 2014 · Viewed 42.9k times · Source

I am trying to run multiple feature file using tags, i have tried the command cucumber --tag @some_name --tag @some_name1. But it throws an error which reads as follows,

"WARNING: cannot load such file -- 2.0/gherkin_lexer_en Couldn't load 2.0/gherkin_lexer_en"

Can someone please tell me how to use tags to run multiple feature file.

Answer

Guru_Clef picture Guru_Clef · Jun 13, 2017

Example: Running scenarios which match @important OR @billing

cucumber --tags @billing,@important

Example: Running scenarios which match @important AND @billing

cucumber --tags @billing --tags @important

from: https://docs.cucumber.io/cucumber/api/#tags