我必须忽略使用空手道框架的集成测试套件的某些 .feature 测试文件。有什么方法可以有选择地排除某些文件。
是的,答案是tags https://github.com/intuit/karate#test-suites.
Example:
@ignore
Feature: my feature
Scenario:
# blah
在命令行上:
mvn test -Dcucumber.options="--tags ~@ignore" -Dtest=MyIntegrationSuiteRunner
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)