gradle / test-retry-gradle-plugin

Gradle plugin to retry tests that have failed to mitigate test flakiness.
Apache License 2.0
218 stars 48 forks source link

Android UI/Unit tests support? #289

Open Matthew-X opened 1 month ago

Matthew-X commented 1 month ago

Hello, I'm trying to implement this plugin into a big project with lots UI and unit tests and I could not see any documentation or mentions of this plugin working with Android tests (except for the issue post in here in 2020). But I was hoping that maybe situation has changed and it is possible now to utilize this plugin with Android UI tests?

So far I have not tried it with unit tests, but i'm trying to implement it into the UI Tests as this is the most troubling and flaky part in the project, but it seem no matter what I try and do it won't retry the UI Tests. Do you have any advice or a way make it work with the Android UI tests or is there no way making it happen?

Thank you.

pshevche commented 1 month ago

Do you have any advice or a way make it work with the Android UI tests or is there no way making it happen?

@Matthew-X , unfortunately, Android UI tests are still not supported. The plugin works only with Gradle's built-in test task (and all custom tasks that inherit it). The Android test task does not inherit from Gradle's task, so it does not work. We don't have any plans to invest into supporting Android tests yet, but I'll keep the issue around to consider when we plan the next iteration of improvements for this plugin.