Package-level declarations
Types
Link copied to clipboard
A JUnit Test Rule that sets the main coroutine dispatcher to a TestDispatcher for unit testing.
Link copied to clipboard
A custom runner used to set up a hilt instrumented test application.
Link copied to clipboard
class TestDispatchersProvider(testDispatcher: CoroutineDispatcher = UnconfinedTestDispatcher()) : DispatchersProvider
Test implementation of DispatchersProvider that provides a single test dispatcher for all coroutine contexts.
Functions
Link copied to clipboard
Link copied to clipboard
Verifies that a specific interaction with a mock object in a coroutine context never occurred.
Link copied to clipboard
fun ComposeTestRule.onAllNodes(identifier: TestIdentifier, useUnmergedTree: Boolean = false): SemanticsNodeInteractionCollection
Link copied to clipboard
fun ComposeTestRule.onNodeWithIdentifier(identifier: TestIdentifier, suffix: String? = null, useUnmergedTree: Boolean = false): SemanticsNodeInteraction
Finds a semantics node identified by the given test identifier.
Link copied to clipboard
A helper function to run a test using the UnconfinedTestDispatcher.
Link copied to clipboard
Creates a new instance of TestScope with the provided CoroutineContext.
Link copied to clipboard
Verifies that a specific interaction with a mock object never occurred.
Link copied to clipboard