且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

动态传递黄瓜选项中的黄瓜选项?

更新时间:2021-10-06 00:00:32

这个问题现在已经很老了,但是答案是可以的。

This question is quite old now, but the answer is yes you can.

例如,如果您使用的是maven,就可以这样添加。

If you are using maven for example just add it like this.

mvn test -Dcucumber.options="--tags @your_tag"

您可以在运行它们时以这种方式过滤您的方案。

You can filter yous scenarios that way when running them.

希望这会有所帮助。