Dcucumber.options,如何具有多个标签 [英] Dcucumber.options, how to have multiple tags

查看:605
本文介绍了Dcucumber.options,如何具有多个标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过以下命令使用Maven运行黄瓜测试

I am trying run cucumber tests using maven with following command

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

此命令工作正常,但是,如果我尝试以下操作,则会出错

This command works fine, however if i try something like following, i get error

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

是否可以通过黄瓜运行时选项传递多个标签名称?

Is there a way to pass in multiple tag names with cucumber run-time options?

推荐答案

使用@debug1@debug2运行方案:

mvn test -Dcucumber.options="--tags @debug1 --tags @debug2"

要使用@debug1@debug2运行方案:

mvn test -Dcucumber.options="--tags @debug1,@debug2"

这篇关于Dcucumber.options,如何具有多个标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆