Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,28 +59,23 @@ abstract class BaseTest {
@Inject
lateinit var composeIdlingResources: @JvmSuppressWildcards Collection<ComposeIdlingResource>

private val webServerRule by lazy {
WebServerRule(
lazy { listOf(mockDispatcher) },
lazy { responseStore }
) { mockWebServerProvider.serverUrl }
}
private val webServerRule = WebServerRule(
lazy { listOf(mockDispatcher) },
lazy { responseStore }
) { mockWebServerProvider.serverUrl }

private val localStoreRule by lazy {
LocalStoreRule(
lazy { sharedPreferences },
lazy { keyValueStore }
)
}
private val localStoreRule = LocalStoreRule(
lazy { sharedPreferences },
lazy { keyValueStore }
)

protected abstract val composeTestRule: ComposeContentTestRule

abstract val composeTestRule: ComposeContentTestRule
@SuppressLint("UnsafeOptInUsageError")
private val grantPermissionRule = SdkAwareGrantPermissionRule.grant(WRITE_EXTERNAL_STORAGE)

@get:Rule
val testRules: RuleChain by lazy {
@SuppressLint("UnsafeOptInUsageError")
val grantPermissionRule = SdkAwareGrantPermissionRule.grant(
WRITE_EXTERNAL_STORAGE
)
RuleChain
.outerRule(hiltAndroidRule)
.around(DisableAnimationsRule())
Expand Down