Dcucumber.options, how to have multiple tags

前端 未结 6 695
无人共我
无人共我 2020-12-24 03:28

I am trying run cucumber tests using maven with following command

mvn test -Dcucumber.options=\"--tag @debug1\"

This command works fine, ho

6条回答
  •  粉色の甜心
    2020-12-24 03:55

    Little late to the party, but I am using something like:

    mvn test -D tags="debug1 and debug2"
    

    I am on Cucumber 2.4.

    The @ symbol is optional. You can use a tags Maven property. And you can use boolean logic to hook up multiple tags - official docs.

    Reduces the amount of typing little bit.

提交回复
热议问题