Package-level declarations

Types

Link copied to clipboard
class MainDispatcherRule constructor(val testDispatcher: TestDispatcher = UnconfinedTestDispatcher()) : TestWatcher

A test rule that replaces the Dispatchers.Main with another CoroutineDispatcher. See here for more information

Link copied to clipboard
annotation class RepeatTest(val times: Int = 2)

Annotates either a test class or a test method for total executions of 1 + times. This is extremely useful for checking if a test is flaky, but otherwise dangerous.

Link copied to clipboard
class RepeatTestRule : TestRule
Link copied to clipboard
annotation class RetryTest(val times: Int = 1)

Annotates either a test class or a test method with a retry request of times.

Link copied to clipboard
class RetryTestRule : TestRule
Link copied to clipboard
class TestDescriptionRule : TestWatcher

A Rule that catches the Description of the test running