sealed trait TestRetry extends AnyRef
The test retry configuration.
- Since
1.1.2
- Alphabetic
- By Inheritance
- TestRetry
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
classRetryFilter: (String, List[String]) ⇒ Boolean
Classes that pass this filter (based on classname and annotations) will be entirely retried instead of retrying only the test cases that failed.
Classes that pass this filter (based on classname and annotations) will be entirely retried instead of retrying only the test cases that failed. This filter will only be applied to classes that pass the
classesFilter
. By default, no classes are included.- See also
-
abstract
def
classesFilter: (String, List[String]) ⇒ Boolean
Filter classes to retry based on classname and annotations.
-
abstract
def
flakyTestPolicy: FlakyTestPolicy
Whether flaky tests should fail the build.
-
abstract
def
maxFailures: Int
Disable retries if the number of failing test cases is above this threshold.
Disable retries if the number of failing test cases is above this threshold.
Any value less than 1 results in no limit.
-
abstract
def
maxRetries: Int
How many times failing tests should be retried at most.
-
abstract
def
withClassRetryFilter(classRetryFilter: (String, List[String]) ⇒ Boolean): TestRetry
Create a copy of this configuration with a new filter for classes to retry entirely.
Create a copy of this configuration with a new filter for classes to retry entirely.
- classRetryFilter
The new filter.
- returns
A copy of this configuration with a new filter for classes to retry entirely.
- See also
-
abstract
def
withClassesFilter(classesFilter: (String, List[String]) ⇒ Boolean): TestRetry
Create a copy of this configuration with a new classes filter.
Create a copy of this configuration with a new classes filter.
- classesFilter
The new classes filter.
- returns
A copy of this configuration with a new classes filter.
- See also
-
abstract
def
withFlakyTestPolicy(policy: FlakyTestPolicy): TestRetry
Create a copy of this configuration with a new policy regarding flaky tests.
Create a copy of this configuration with a new policy regarding flaky tests.
- policy
The new policy.
- returns
A copy of this configuration with a new policy regarding flaky tests.
- See also
-
abstract
def
withMaxFailures(maxFailures: Int): TestRetry
Create a copy of this configuration with a new maximum number of failing tests before flaky test detection is disabled.
Create a copy of this configuration with a new maximum number of failing tests before flaky test detection is disabled. If the number of failing tests is greater than this value, then flaky test detection will be disabled. Any value less than 1 results in no limit.
- maxFailures
The maximum number of failing tests before flaky test detection is disabled.
- returns
A copy of this configuration with a new maximum number of failing tests.
- See also
-
abstract
def
withMaxRetries(maxRetries: Int): TestRetry
Create a copy of this configuration with a new maximum number of retries for failing tests.
Create a copy of this configuration with a new maximum number of retries for failing tests.
- maxRetries
The maximum number of times a failing tests must be retried.
- returns
A copy of this configuration with a new maximum number of retries for failing test.
- See also
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()