'How to do not retry annotated tests (@Issue) with test-retry-gradle-plugin
Retry block in gradle.build file:
useTestNG {
retry {
maxRetries = 2
maxFailures = 150
failOnPassedAfterRetry = false
}
}
Test example:
@Test
@issue("11548")
public void test1(){
some test actions
}
How to avoid test retry if annotation @Issue is present?
I've read documentation and there present such function:
excludeAnnotationClasses.add("*NonRetryable")
But I didn't get how to use it
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
