Oliver.O
08/20/2025, 9:08 PMtrevjones
08/20/2025, 9:56 PMOliver.O
08/20/2025, 10:15 PMgildor
08/22/2025, 5:22 AMgildor
08/22/2025, 5:25 AMOliver.O
08/22/2025, 12:56 PMgildor
08/22/2025, 2:28 PMgildor
08/22/2025, 2:30 PMOliver.O
08/22/2025, 2:31 PMtrevjones
08/22/2025, 2:33 PMgildor
08/22/2025, 2:35 PMgildor
08/22/2025, 2:39 PMOliver.O
08/22/2025, 2:48 PMEven after JUnit's dominance in the JVM ecosystem, we can still make tests easier to write and maintain. Kotlin makes possible patterns that we couldn't dream of in the Java world.
David
08/25/2025, 1:09 PM#testballoon?) would be nice. πOliver.O
08/25/2025, 1:18 PMgildor
08/25/2025, 1:25 PMOliver.O
08/25/2025, 1:31 PMDavid
08/25/2025, 1:39 PMwaitForStableInActiveWindow (doc) that has been added lately to allow the screen to settle before proceeding with a test clicking on a item to help prevent this, one can easily imagine how a test may fail if a item is pressed before the screen actually has settled and are in resumed state. The API itself has also been a bit flaky:
https://issuetracker.google.com/issues/420349130
https://issuetracker.google.com/issues/417046391
Generally I agree with you @gildor, the test framework shouldn't but a bandage over problematic uiautomator behaviour. However, reality to iron out the flakiness of tests in Android one needs to run them multiple times. There may still be other aspect interfering with your tests if you run on an actual device that you don't have control over, e.g a system dialog showing etc.David
08/25/2025, 1:43 PMuiautomator , it has gotten some love now recently with Marcello at Google doing some work, but before that it has been a bit of a forgotten child that is on life support.gildor
08/25/2025, 1:45 PMOliver.O
08/25/2025, 1:53 PMDavid
08/25/2025, 2:18 PMeventually would fully help, and logically the test should fail because it didn't get what it expected. Running it again would launch the app, putting it on top and then test would run fine. π€·
Something like eventually is what you end up doing, waiting for a object to a appear, hope to find it to then click it:
https://github.com/mullvad/mullvadvpn-app/blob/5621df99a0f357262fef6fe886b2fbf956f[β¦]llvad/mullvadvpn/test/common/extension/UiAutomatorExtensions.kt
Any resistance again flakiness would have to be done on a higher level, e.g run the test 10 times, expect at least 80% success, or do a retry if a test failed to make sure it wasn't flaky. In the end, I sort of agree with Andrey, flakiness shouldn't be solved by the testing framework, it should be solved at it's core. However, reality is what reality is, ui testing on android device will really never be non-flaky.Oliver.O
08/25/2025, 2:32 PMDavid
08/26/2025, 7:03 AMRegarding a channel, I can ask Alina to provide one, though it may be a bit early (even the massively promoted #C06V6SFE71D has just 53 users).I think it depends on the use case, power-assert is a pretty slim tool. Kotest has 1200+ users. π―
Oliver.O
09/12/2025, 7:58 PM