Isolate component UI tests from application startup

This commit is contained in:
wallentx committed 2026-10-11 19:40:54 -05:00
1 parent 5ce46e0a5d
commit 049ce1d6b0
1 file changed
+3 -1
@@ -1,5 +1,6 @@
package com.droiddeck.launcher.ui
import android.app.Application
import androidx.compose.ui.semantics.Role
import androidx.compose.ui.semantics.SemanticsProperties
import androidx.compose.ui.test.SemanticsMatcher
@@ -24,8 +25,9 @@ import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
import org.robolectric.annotation.Config
// Exercise the component UI without starting App's process-wide servers or crash handler.
@RunWith(RobolectricTestRunner::class)
@Config(sdk = [28])
@Config(sdk = [28], application = Application::class)
class ComponentsPageProfileTest {
@get:Rule val compose = createRobolectricComposeRule()