Theming: Set the default theme to auto, and archive captured screenshots in github actions. #97
GitHub Actions / InstrumentationTests
failed
Jan 4, 2025 in 0s
81 tests run, 75 passed, 1 skipped, 5 failed.
Annotations
github-actions / InstrumentationTests
IntegrationTest.themeTest
androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: '(an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>' doesn't match the selected view.
Expected: (an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>
Raw output
androidx.test.espresso.base.AssertionErrorHandler$AssertionFailedWithCauseError: '(an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>' doesn't match the selected view.
Expected: (an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>
Got: view.isChecked() was <false>
View Details: AppCompatCheckedTextView{id=16908308, res-name=text1, visibility=VISIBLE, width=665, height=96, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.AbsListView$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, text=Light, input-type=0, ime-target=false, has-links=false, is-checked=false}
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:1841)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:35)
at androidx.test.espresso.base.AssertionErrorHandler.handleSafely(AssertionErrorHandler.java:26)
at androidx.test.espresso.base.DefaultFailureHandler$TypedFailureHandler.handle(DefaultFailureHandler.java:158)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:120)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:387)
at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:366)
at ca.rmen.android.poetassistant.main.IntegrationTest.themeTest(IntegrationTest.java:216)
... 33 trimmed
Caused by: junit.framework.AssertionFailedError: '(an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>' doesn't match the selected view.
Expected: (an instance of android.view.View and an instance of android.widget.Checkable) and view.isChecked() matching: is <true>
Got: view.isChecked() was <false>
View Details: AppCompatCheckedTextView{id=16908308, res-name=text1, visibility=VISIBLE, width=665, height=96, has-focus=false, has-focusable=false, has-window-focus=true, is-clickable=false, is-enabled=true, is-focused=false, is-focusable=false, is-layout-requested=false, is-selected=false, layout-params=android.widget.AbsListView$LayoutParams@YYYYYY, tag=null, root-is-layout-requested=false, has-input-connection=false, x=0.0, y=0.0, text=Light, input-type=0, ime-target=false, has-links=false, is-checked=false}
at androidx.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:620)
at androidx.test.espresso.assertion.ViewAssertions$MatchesViewAssertion.check(ViewAssertions.java:97)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:488)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:346)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:319)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
github-actions / InstrumentationTests
ScreenshotTest.testTakeScreenshots[Light]
java.lang.SecurityException: Error granting runtime permission
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1433)
Raw output
java.lang.SecurityException: Error granting runtime permission
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1433)
at android.app.UiAutomation.grantRuntimePermission(UiAutomation.java:1399)
at androidx.test.runner.permission.UiAutomationPermissionGranter.requestPermissions(UiAutomationPermissionGranter.java:44)
at androidx.test.rule.GrantPermissionRule$RequestPermissionStatement.evaluate(GrantPermissionRule.java:149)
at com.google.testing.junit.testparameterinjector.PluggableTestRunner$ContextMethodRule$1.evaluate(PluggableTestRunner.java:414)
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 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:2402)
Caused by: java.lang.SecurityException: Package ca.rmen.android.poetassistant.test has not requested permission android.permission.WRITE_EXTERNAL_STORAGE
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.IUiAutomationConnection$Stub$Proxy.grantRuntimePermission(IUiAutomationConnection.java:677)
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1430)
... 31 more
github-actions / InstrumentationTests
ScreenshotTest.testTakeScreenshots[Dark]
java.lang.SecurityException: Error granting runtime permission
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1433)
Raw output
java.lang.SecurityException: Error granting runtime permission
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1433)
at android.app.UiAutomation.grantRuntimePermission(UiAutomation.java:1399)
at androidx.test.runner.permission.UiAutomationPermissionGranter.requestPermissions(UiAutomationPermissionGranter.java:44)
at androidx.test.rule.GrantPermissionRule$RequestPermissionStatement.evaluate(GrantPermissionRule.java:149)
at com.google.testing.junit.testparameterinjector.PluggableTestRunner$ContextMethodRule$1.evaluate(PluggableTestRunner.java:414)
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 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:2402)
Caused by: java.lang.SecurityException: Package ca.rmen.android.poetassistant.test has not requested permission android.permission.WRITE_EXTERNAL_STORAGE
at android.os.Parcel.createExceptionOrNull(Parcel.java:3057)
at android.os.Parcel.createException(Parcel.java:3041)
at android.os.Parcel.readException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:2966)
at android.app.IUiAutomationConnection$Stub$Proxy.grantRuntimePermission(IUiAutomationConnection.java:677)
at android.app.UiAutomation.grantRuntimePermissionAsUser(UiAutomation.java:1430)
... 31 more
github-actions / InstrumentationTests
TaskStackTest.dictionaryDeepLinkAfterThemeChangeTest
java.lang.RuntimeException: Could not launch intent Intent { flg=0x10000000 cmp=ca.rmen.android.poetassistant.test/ca.rmen.android.poetassistant.settings.SettingsActivity } within 45000 milliseconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1736009706684 and now the last time the queue went idle was: 1736009711699. If these numbers are the same your activity might be hogging the event queue.
at androidx.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:537)
Raw output
java.lang.RuntimeException: Could not launch intent Intent { flg=0x10000000 cmp=ca.rmen.android.poetassistant.test/ca.rmen.android.poetassistant.settings.SettingsActivity } within 45000 milliseconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1736009706684 and now the last time the queue went idle was: 1736009711699. If these numbers are the same your activity might be hogging the event queue.
at androidx.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:537)
at androidx.test.rule.ActivityTestRule.launchActivity(ActivityTestRule.java:354)
at ca.rmen.android.poetassistant.main.TaskStackTest.deepLinkAfterThemeChangeTest(TaskStackTest.java:88)
at ca.rmen.android.poetassistant.main.TaskStackTest.dictionaryDeepLinkAfterThemeChangeTest(TaskStackTest.java:73)
github-actions / InstrumentationTests
TaskStackTest.queryDeepLinkAfterThemeChangeTest
java.lang.RuntimeException: Could not launch intent Intent { flg=0x10000000 cmp=ca.rmen.android.poetassistant.test/ca.rmen.android.poetassistant.settings.SettingsActivity } within 45000 milliseconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1736009755487 and now the last time the queue went idle was: 1736009760517. If these numbers are the same your activity might be hogging the event queue.
at androidx.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:537)
Raw output
java.lang.RuntimeException: Could not launch intent Intent { flg=0x10000000 cmp=ca.rmen.android.poetassistant.test/ca.rmen.android.poetassistant.settings.SettingsActivity } within 45000 milliseconds. Perhaps the main thread has not gone idle within a reasonable amount of time? There could be an animation or something constantly repainting the screen. Or the activity is doing network calls on creation? See the threaddump logs. For your reference the last time the event queue was idle before your activity launch request was 1736009755487 and now the last time the queue went idle was: 1736009760517. If these numbers are the same your activity might be hogging the event queue.
at androidx.test.runner.MonitoringInstrumentation.startActivitySync(MonitoringInstrumentation.java:537)
at androidx.test.rule.ActivityTestRule.launchActivity(ActivityTestRule.java:354)
at ca.rmen.android.poetassistant.main.TaskStackTest.deepLinkAfterThemeChangeTest(TaskStackTest.java:88)
at ca.rmen.android.poetassistant.main.TaskStackTest.queryDeepLinkAfterThemeChangeTest(TaskStackTest.java:79)
Loading