Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable code coverage for device tests #2265

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

alexvanyo
Copy link
Owner

Fixes #2257

Copy link

codecov bot commented Dec 15, 2024

❌ 5 Tests Failed:

Tests completed Failed Passed Skipped
15764 5 15759 0
View the top 3 failed tests by shortest run time
com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests close_button_clicked_in_dialog
Stack Traces | 0.336s run time
java.lang.IllegalStateException: Snapshot is not open: snapshotId=111, disposed=false, applied=false, lowestPin=111
	at androidx.compose.runtime.snapshots.SnapshotKt.validateOpen(Snapshot.kt:2014)
	at androidx.compose.runtime.snapshots.SnapshotKt.access$validateOpen(Snapshot.kt:1)
	at androidx.compose.runtime.snapshots.MutableSnapshot.apply(Snapshot.kt:831)
	at androidx.compose.runtime.Recomposer.applyAndCheck(Recomposer.kt:1414)
	at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1893)
	at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:675)
	at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:614)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:127)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1725)
	at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:172)
	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.jvm.kt:313)
	at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.jvm.kt:191)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:125)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1804)
	at android.view.View.dispatchAttachedToWindow(View.java:14514)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
	at android.view.ViewGroup.addViewInner(ViewGroup.java:4348)
	at android.view.ViewGroup.addView(ViewGroup.java:4145)
	at android.view.ViewGroup.addView(ViewGroup.java:4117)
	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:423)
	at android.app.Activity.setContentView(Activity.java:2202)
	at androidx.activity.ComponentActivity.setContentView(ComponentActivity.kt:402)
	at androidx.activity.compose.ComponentActivityKt.setContent(ComponentActivity.kt:72)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:569)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:568)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread$lambda$0(AndroidSynchronization.android.kt:39)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.$r8$lambda$opyMdTZ52jorqLaIG4SKpPr_Zno(AndroidSynchronization.android.kt)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt$$ExternalSyntheticLambda0.call(D8$$SyntheticClass:0)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1897)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
	Suppressed: java.util.concurrent.ExecutionException: An Exception occurred on the UI thread during runOnUiThread()
		at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread(AndroidSynchronization.android.kt:50)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidTestOwner.runOnUiThread(ComposeUiTest.android.kt:619)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.runOnUiThread(ComposeUiTest.android.kt:473)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.setContent(ComposeUiTest.android.kt:568)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.close_button_clicked_in_dialog$lambda$4(DeserializationInfoPaneTests.kt:249)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.$r8$lambda$JwMa_c1Q5Wf45OupNC-PBTjILnM(DeserializationInfoPaneTests.kt)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests$$ExternalSyntheticLambda5.invoke(D8$$SyntheticClass:0)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:114)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.withDisposableContent(ComposeUiTest.android.kt:585)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1$1.invoke(ComposeUiTest.android.kt:372)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withComposeIdlingResource(ComposeUiTest.android.kt:441)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withComposeIdlingResource(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1.invoke(ComposeUiTest.android.kt:371)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withWindowRecomposer(ComposeUiTest.android.kt:415)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withWindowRecomposer(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1.invoke(ComposeUiTest.android.kt:370)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withTestCoroutines(ComposeUiTest.android.kt:428)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withTestCoroutines(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1.invoke(ComposeUiTest.android.kt:369)
		at androidx.compose.ui.test.EspressoLink.withStrategy(EspressoLink.android.kt:69)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1.invoke(ComposeUiTest.android.kt:368)
		at androidx.compose.ui.test.IdlingResourceRegistry.withRegistry(IdlingResourceRegistry.jvm.kt:146)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1.invoke(ComposeUiTest.android.kt:367)
		at androidx.compose.ui.test.ComposeRootRegistry.withRegistry(ComposeRootRegistry.android.kt:137)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:366)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runAndroidComposeUiTest(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest(ComposeUiTest.android.kt:53)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest$default(ComposeUiTest.android.kt:52)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.close_button_clicked_in_dialog(DeserializationInfoPaneTests.kt:244)
		at java.lang.reflect.Method.invoke(Native Method)
		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at androidx.test.ext.junit.runners.AndroidJUnit4.run(AndroidJUnit4.java:162)
		at com.alexvanyo.composelife.kmpandroidrunner.KmpAndroidJUnit4.run(KmpAndroidJUnit4.kt:32)
		at org.junit.runners.Suite.runChild(Suite.java:128)
		at org.junit.runners.Suite.runChild(Suite.java:27)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:68)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
		at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:463)
		at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1879)
com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests back_button_clicked_not_in_dialog
Stack Traces | 0.374s run time
java.lang.IllegalStateException: Snapshot is not open: snapshotId=97, disposed=false, applied=false, lowestPin=97
	at androidx.compose.runtime.snapshots.SnapshotKt.validateOpen(Snapshot.kt:2014)
	at androidx.compose.runtime.snapshots.SnapshotKt.access$validateOpen(Snapshot.kt:1)
	at androidx.compose.runtime.snapshots.MutableSnapshot.apply(Snapshot.kt:831)
	at androidx.compose.runtime.Recomposer.applyAndCheck(Recomposer.kt:1414)
	at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1893)
	at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:675)
	at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:614)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:127)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1725)
	at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:172)
	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.jvm.kt:313)
	at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.jvm.kt:191)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:125)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1804)
	at android.view.View.dispatchAttachedToWindow(View.java:14514)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
	at android.view.ViewGroup.addViewInner(ViewGroup.java:4348)
	at android.view.ViewGroup.addView(ViewGroup.java:4145)
	at android.view.ViewGroup.addView(ViewGroup.java:4117)
	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:423)
	at android.app.Activity.setContentView(Activity.java:2202)
	at androidx.activity.ComponentActivity.setContentView(ComponentActivity.kt:402)
	at androidx.activity.compose.ComponentActivityKt.setContent(ComponentActivity.kt:72)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:569)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:568)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread$lambda$0(AndroidSynchronization.android.kt:39)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.$r8$lambda$opyMdTZ52jorqLaIG4SKpPr_Zno(AndroidSynchronization.android.kt)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt$$ExternalSyntheticLambda0.call(D8$$SyntheticClass:0)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1897)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
	Suppressed: java.util.concurrent.ExecutionException: An Exception occurred on the UI thread during runOnUiThread()
		at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread(AndroidSynchronization.android.kt:50)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidTestOwner.runOnUiThread(ComposeUiTest.android.kt:619)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.runOnUiThread(ComposeUiTest.android.kt:473)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.setContent(ComposeUiTest.android.kt:568)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.back_button_clicked_not_in_dialog$lambda$5(DeserializationInfoPaneTests.kt:293)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.$r8$lambda$ohO9DgsrrWxLo-0K7BBXR9dbINM(DeserializationInfoPaneTests.kt)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests$$ExternalSyntheticLambda2.invoke(D8$$SyntheticClass:0)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:114)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.withDisposableContent(ComposeUiTest.android.kt:585)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1$1.invoke(ComposeUiTest.android.kt:372)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withComposeIdlingResource(ComposeUiTest.android.kt:441)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withComposeIdlingResource(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1.invoke(ComposeUiTest.android.kt:371)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withWindowRecomposer(ComposeUiTest.android.kt:415)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withWindowRecomposer(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1.invoke(ComposeUiTest.android.kt:370)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withTestCoroutines(ComposeUiTest.android.kt:428)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withTestCoroutines(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1.invoke(ComposeUiTest.android.kt:369)
		at androidx.compose.ui.test.EspressoLink.withStrategy(EspressoLink.android.kt:69)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1.invoke(ComposeUiTest.android.kt:368)
		at androidx.compose.ui.test.IdlingResourceRegistry.withRegistry(IdlingResourceRegistry.jvm.kt:146)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1.invoke(ComposeUiTest.android.kt:367)
		at androidx.compose.ui.test.ComposeRootRegistry.withRegistry(ComposeRootRegistry.android.kt:137)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:366)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runAndroidComposeUiTest(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest(ComposeUiTest.android.kt:53)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest$default(ComposeUiTest.android.kt:52)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.back_button_clicked_not_in_dialog(DeserializationInfoPaneTests.kt:288)
		at java.lang.reflect.Method.invoke(Native Method)
		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at androidx.test.ext.junit.runners.AndroidJUnit4.run(AndroidJUnit4.java:162)
		at com.alexvanyo.composelife.kmpandroidrunner.KmpAndroidJUnit4.run(KmpAndroidJUnit4.kt:32)
		at org.junit.runners.Suite.runChild(Suite.java:128)
		at org.junit.runners.Suite.runChild(Suite.java:27)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:68)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
		at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:463)
		at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1879)
com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests successful_is_displayed_correctly_not_in_dialog
Stack Traces | 0.421s run time
java.lang.IllegalStateException: Snapshot is not open: snapshotId=104, disposed=false, applied=false, lowestPin=104
	at androidx.compose.runtime.snapshots.SnapshotKt.validateOpen(Snapshot.kt:2014)
	at androidx.compose.runtime.snapshots.SnapshotKt.access$validateOpen(Snapshot.kt:1)
	at androidx.compose.runtime.snapshots.MutableSnapshot.apply(Snapshot.kt:831)
	at androidx.compose.runtime.Recomposer.applyAndCheck(Recomposer.kt:1414)
	at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:1893)
	at androidx.compose.runtime.CompositionImpl.composeInitial(Composition.kt:675)
	at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:614)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:127)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:1725)
	at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:172)
	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.jvm.kt:313)
	at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.jvm.kt:191)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:125)
	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:118)
	at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:1804)
	at android.view.View.dispatchAttachedToWindow(View.java:14514)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2836)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:2843)
	at android.view.ViewGroup.addViewInner(ViewGroup.java:4348)
	at android.view.ViewGroup.addView(ViewGroup.java:4145)
	at android.view.ViewGroup.addView(ViewGroup.java:4117)
	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:423)
	at android.app.Activity.setContentView(Activity.java:2202)
	at androidx.activity.ComponentActivity.setContentView(ComponentActivity.kt:402)
	at androidx.activity.compose.ComponentActivityKt.setContent(ComponentActivity.kt:72)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:569)
	at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl$setContent$3.invoke(ComposeUiTest.android.kt:568)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread$lambda$0(AndroidSynchronization.android.kt:39)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt.$r8$lambda$opyMdTZ52jorqLaIG4SKpPr_Zno(AndroidSynchronization.android.kt)
	at androidx.compose.ui.test.AndroidSynchronization_androidKt$$ExternalSyntheticLambda0.call(D8$$SyntheticClass:0)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	at android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1897)
	at android.os.Handler.handleCallback(Handler.java:739)
	at android.os.Handler.dispatchMessage(Handler.java:95)
	at android.os.Looper.loop(Looper.java:148)
	at android.app.ActivityThread.main(ActivityThread.java:5417)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
	Suppressed: java.util.concurrent.ExecutionException: An Exception occurred on the UI thread during runOnUiThread()
		at androidx.compose.ui.test.AndroidSynchronization_androidKt.runOnUiThread(AndroidSynchronization.android.kt:50)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidTestOwner.runOnUiThread(ComposeUiTest.android.kt:619)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.runOnUiThread(ComposeUiTest.android.kt:473)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.setContent(ComposeUiTest.android.kt:568)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.successful_is_displayed_correctly_not_in_dialog$lambda$1(DeserializationInfoPaneTests.kt:102)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.$r8$lambda$5ol8hywbH5R_r5aH19G8noJQNts(DeserializationInfoPaneTests.kt)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests$$ExternalSyntheticLambda1.invoke(D8$$SyntheticClass:0)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:114)
		at androidx.compose.ui.test.ComposeUiTest_androidKt$runAndroidComposeUiTest$1.invoke(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$AndroidComposeUiTestImpl.withDisposableContent(ComposeUiTest.android.kt:585)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1$1.invoke(ComposeUiTest.android.kt:372)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withComposeIdlingResource(ComposeUiTest.android.kt:441)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withComposeIdlingResource(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1$1.invoke(ComposeUiTest.android.kt:371)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withWindowRecomposer(ComposeUiTest.android.kt:415)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withWindowRecomposer(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1$1.invoke(ComposeUiTest.android.kt:370)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.withTestCoroutines(ComposeUiTest.android.kt:428)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.access$withTestCoroutines(ComposeUiTest.android.kt:237)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1$1.invoke(ComposeUiTest.android.kt:369)
		at androidx.compose.ui.test.EspressoLink.withStrategy(EspressoLink.android.kt:69)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1$1.invoke(ComposeUiTest.android.kt:368)
		at androidx.compose.ui.test.IdlingResourceRegistry.withRegistry(IdlingResourceRegistry.jvm.kt:146)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment$runTest$1.invoke(ComposeUiTest.android.kt:367)
		at androidx.compose.ui.test.ComposeRootRegistry.withRegistry(ComposeRootRegistry.android.kt:137)
		at androidx.compose.ui.test.AndroidComposeUiTestEnvironment.runTest(ComposeUiTest.android.kt:366)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runAndroidComposeUiTest(ComposeUiTest.android.kt:112)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest(ComposeUiTest.android.kt:53)
		at androidx.compose.ui.test.ComposeUiTest_androidKt.runComposeUiTest$default(ComposeUiTest.android.kt:52)
		at com.alexvanyo.composelife.ui.app.DeserializationInfoPaneTests.successful_is_displayed_correctly_not_in_dialog(DeserializationInfoPaneTests.kt:99)
		at java.lang.reflect.Method.invoke(Native Method)
		at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
		at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
		at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
		at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
		at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
		at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at androidx.test.ext.junit.runners.AndroidJUnit4.run(AndroidJUnit4.java:162)
		at com.alexvanyo.composelife.kmpandroidrunner.KmpAndroidJUnit4.run(KmpAndroidJUnit4.kt:32)
		at org.junit.runners.Suite.runChild(Suite.java:128)
		at org.junit.runners.Suite.runChild(Suite.java:27)
		at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
		at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
		at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
		at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
		at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
		at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
		at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
		at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:68)
		at androidx.test.internal.runner.TestExecutor.execute(TestExecutor.java:59)
		at androidx.test.runner.AndroidJUnitRunner.onStart(AndroidJUnitRunner.java:463)
		at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1879)

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@alexvanyo alexvanyo force-pushed the av/device-code-coverage branch from 99fbf86 to 6de3416 Compare December 19, 2024 03:23
@alexvanyo alexvanyo force-pushed the av/device-code-coverage branch from 6de3416 to b0ccfb4 Compare December 26, 2024 19:02
@alexvanyo alexvanyo force-pushed the av/device-code-coverage branch from b0ccfb4 to 3b05443 Compare December 28, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-enable device code coverage generation
1 participant