Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to execute Multiple cucumber feature files using tags

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.

like image 393
user3486694 Avatar asked Jun 16 '14 06:06

user3486694


3 Answers

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

like image 192
Guru_Clef Avatar answered Nov 01 '22 04:11

Guru_Clef


Try this to run multiple feature files using tags

cucumber --tags @some_name,@some_name1,@some_name3
like image 21
Srikanth Avatar answered Nov 01 '22 03:11

Srikanth


Here is the official documentation: https://docs.cucumber.io/cucumber/api/#tags

like image 3
mvndaai Avatar answered Nov 01 '22 03:11

mvndaai