10

When I run my UI tests, they work perfectly fine and I can see tests are passed through logs. But Status of the Tests is never updated on Android Studio's panel.

Did anyone experience the same problem?

Test results as Logs:

Step2TableWithHeadersNextDirectionRow[SM-A505FN - 11] SUCCESS  
....
            2022-03-15T10:52:14.245+0100 [INFO] [com.android.build.gradle.internal.tasks.DeviceProviderInstrumentTestTask] [XmlResultReporter]: XML test result file generated at /Users/mySuperApp/app/build/outputs/androidTest-results/connected/flavors/superApp/TEST-SM-A505FN - 11-app-superApp.xml. Total tests 2, passed 2, 
            2022-03-15T10:52:14.247+0100 [QUIET] [system.out] 
    ....

test

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7772763 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.2.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Registry: external.system.auto.import.disabled=true, ide.images.show.chessboard=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
Orcun Sevsay
  • 1,310
  • 1
  • 14
  • 44
  • 1
    Did you find a solution for this? – JCarlosR Jun 13 '22 at 19:06
  • Wondering: 1. Does that happen with any type of tests? 2. How could a one reproduce that? 3. Did you try to upgrade to the recent Android Studio version? – Zain Jan 14 '23 at 16:53
  • What's your Android Studio and Android Gradle Plugin version? – Prokash Sarkar Jan 16 '23 at 04:38
  • Do you use `testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"` (https://stackoverflow.com/questions/52873173/migrating-junit4-tests-to-androidx-what-causes-delegate-runner-could-not-be-lo, https://commonsware.com/Jetpack/pages/chap-testing-005.html)? Are there any problems in LogCat? – CoolMind Jan 18 '23 at 09:39
  • could you make a minimal viable GitHub Project where you can make it to "not work" so we can clone it and reproduce it? – Radu M Jan 18 '23 at 17:38

2 Answers2

1

Please check with the latest android studio,

Android Studio Electric Eel | 2022.1.1

Build #AI-221.6008.13.2211.9477386, built on January 11, 2023

Runtime version: 11.0.15+0-b2043.56-8887301 x86_64

VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.

Below image is my flutter project testCase

Below image is my flutter project testCase

shraddha patel
  • 628
  • 4
  • 12
0

Removing the Run configuration of the tests, solved the issue. Maybe it had some invalid configurations.

If not!! Try this flow. I hope it will help.

Mukund Jogi
  • 1,329
  • 5
  • 18