gradle / test-retry-gradle-plugin

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

#101 - Adds support for JUnitParams / JUnit4 #143

Closed daknin closed 2 years ago

daknin commented 2 years ago

As described in #101, using the plugin with JUnitParams results in a failure message.

org.gradle.test-retry was unable to retry the following test methods, which is unexpected. Please file a bug report at https://github.com/gradle/test-retry-gradle-plugin/issues

This PR updates the regex used to extract the Java method name from the JUnit test name. It also adds a test / example for using JUnitParams tests with the plugin

marcphilipp commented 2 years ago

@daknin Could you please rebase this on main to fix the Gradle build? The snapshot version of Gradle used on this branch is no longer available.

daknin commented 2 years ago

@marcphilipp I've rebased as requsted

marcphilipp commented 2 years ago

@daknin The new test fails for Gradle 5.0 - 5.6.4. Could you please take a look?