Run a single scenario in karate

2019-07-26 08:39发布

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

标签: karate
1条回答
我命由我不由天
2楼-- · 2019-07-26 09:06

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.

查看更多
登录 后发表回答