在空手道中运行一个场景 [英] Run a single scenario in karate
本文介绍了在空手道中运行一个场景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要测试空手道中的特定功能,请运行以下命令:
To test a specific feature in karate i run this command:
mvn test -Dkarate.options="classpath:myfeature.feature"
是否有一种方法可以运行定义到功能中的单个方案?
there is a way to run a single scenario defined into a feature?
谢谢, 洛伦佐(Lorenzo)
Thanks, Lorenzo
推荐答案
是的,您可以通过标签: https://github.com/intuit/karate#tags
Yes, you can via tags: https://github.com/intuit/karate#tags
还请注意,您可以按名称运行方案,例如如果名称是"first":
Also note that you can run a scenario by name, for e.g. if the name is "first":
mvn test -Dkarate.options="classpath:myfeature.feature --name ^first$"
如果您使用IntelliJ,则可以右键单击并执行上述操作.
And if you use IntelliJ - you can right click and do the above.
这篇关于在空手道中运行一个场景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文