Run a single scenario in karate

馋奶兔 提交于 2019-12-11 09:01:30

问题


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?

Thanks, Lorenzo


回答1:


Yes, you can via tags: https://github.com/intuit/karate#tags

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$" 

And if you use IntelliJ - you can right click and do the above.



来源:https://stackoverflow.com/questions/54765283/run-a-single-scenario-in-karate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!