@Beta
@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Flaky
Flaky
to mark it as occasionally failing.
If the test class defines a @Rule Flaky.Rule
(a public, non-static, initialized field),
it will try to execture a flaky tests more than once if it failed. By default,
three executions are tried.Modifier and Type | Optional Element and Description |
---|---|
int |
trials
The number of trials if the test method failed.
|