Kathrin
05/03/2024, 10:01 AMjava.lang.NullPointerException: Cannot invoke "String.toLowerCase(java.util.Locale)" because "android.os.Build.FINGERPRINT" is null
at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:314)
at androidx.compose.ui.test.ComposeUiTest_androidKt.runAndroidComposeUiTest(ComposeUiTest.android.kt:114)
at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest(ComposeUiTest.android.kt:61)
at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest$default(ComposeUiTest.android.kt:60)
Alexandru Caraus
05/03/2024, 10:11 AMAlexandru Caraus
05/03/2024, 10:12 AMKathrin
05/03/2024, 11:13 AMAlexandru Caraus
05/03/2024, 5:32 PMAlexandru Caraus
05/03/2024, 5:35 PMAlexandru Caraus
05/03/2024, 5:36 PMAlexandru Caraus
05/03/2024, 5:36 PMAtul Gupta
09/22/2024, 4:04 PMallTest
(when ran for android environment)Atul Gupta
09/22/2024, 4:06 PMComposeUiTest.android.kt
?John O'Reilly
10/18/2024, 6:01 PMtestDebugUnitTest
John O'Reilly
10/18/2024, 6:02 PMJohn O'Reilly
10/18/2024, 6:03 PMcommonTest
so definitely nothing android related
@Test
fun myFirstTest() = runComposeUiTest {
setContent {
Text("hi")
}
onNodeWithText("hi").assertExists()
}
John O'Reilly
10/18/2024, 6:17 PMdesktopTest
works fine (using jvm target)John O'Reilly
10/19/2024, 9:17 AMscreen
folder in commonTest) from running as part of testDebugUnitTest
test run....they still run when using connectedAndroidTest
(cc @Marco Pierucci)
testOptions {
unitTests {
all {
it.exclude("**/screen/**")
}
}
}
John O'Reilly
10/19/2024, 9:21 AMallTests
and that will run all tests on all platforms (but won't run the screen
one when running for android (local) because of the testOptions
filter mentioned above ) ....updated https://github.com/joreilly/ClimateTraceKMP/tree/cmp_tests branch with those changesMarco Pierucci
10/19/2024, 10:03 AMMarco Pierucci
10/19/2024, 10:03 AM