Search code examples
cucumberwatir-webdriver

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.


Solution

  • 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