无法为功能启用 @ignore 注释
Can't be enable to @ignore annotation for the features
空手道的特征有@ignore 注释。
https://github.com/intuit/karate#data-driven-features
我尝试@ignore 注释,但它未启用并且该功能运行。
(使用空手道 0.9.2)
如何使用@ignore 注释来标记特征?
@ignore
Feature: API test
Background:
* url 'http://localhost:8089'
Scenario: Get all rentacycles
Given path '/rentacycles'
When method get
Then status 200
And assert response.size() === 5
没有"special"注释(实际上只有一个@parallel=false
)
因此您可以随意使用任何名称作为注释。
重要的是当你运行你的测试时,你必须提到要使用哪个注解。请参阅文档:https://github.com/intuit/karate#tags
也许这个例子会很清楚:first.feature
要 运行 使用标签进行测试:
mvn test -Dkarate.options="--tags @smoke"
你要问的是不要 运行:
mvn test -Dkarate.options="--tags ~@smoke"
通常这是在 JUnit 上设置的 运行如 this example:
@KarateOptions(tags = "~@ignore")
空手道的特征有@ignore 注释。
https://github.com/intuit/karate#data-driven-features
我尝试@ignore 注释,但它未启用并且该功能运行。
(使用空手道 0.9.2)
如何使用@ignore 注释来标记特征?
@ignore
Feature: API test
Background:
* url 'http://localhost:8089'
Scenario: Get all rentacycles
Given path '/rentacycles'
When method get
Then status 200
And assert response.size() === 5
没有"special"注释(实际上只有一个@parallel=false
)
因此您可以随意使用任何名称作为注释。
重要的是当你运行你的测试时,你必须提到要使用哪个注解。请参阅文档:https://github.com/intuit/karate#tags
也许这个例子会很清楚:first.feature
要 运行 使用标签进行测试:
mvn test -Dkarate.options="--tags @smoke"
你要问的是不要 运行:
mvn test -Dkarate.options="--tags ~@smoke"
通常这是在 JUnit 上设置的 运行如 this example:
@KarateOptions(tags = "~@ignore")