gradle / test-retry-gradle-plugin

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

Handle flaky setup that fails after success and prevents failed methods from being re-tried #176

Closed pshevche closed 1 year ago

pshevche commented 1 year ago

Summary

In case of a setup that fails after successful execution, we won't see descriptors for methods from the previous run and will fail with org.gradle.test-retry was unable to retry the following test methods, which is unexpected. This PR solves this case by adding all failed methods from the previous run to be re-tried again.