Closed marcphilipp closed 2 years ago
I had a quick call with @jvandort :
TestFramework
level makes the most sense@UsedByScanPlugin("test-retry")
on this additional method is also a very good ideaPR in gradle/gradle: https://github.com/gradle/gradle/pull/22139 Draft PR in gradle/test-retry-gradle-plugin: https://github.com/gradle/test-retry-gradle-plugin/pull/149
Motivation
A recent change to internal APIs in Gradle (https://github.com/gradle/gradle/pull/21919) broke compatibility.
A potential solution would be to add a
copy(TestFilter): TestFramework
method toTestFramework
. Another workaround would be to use reflection to call the old or new constructor.https://github.com/gradle/test-retry-gradle-plugin/blob/fd1933e424de5d79c1c5c1d18e31896fc0c90380/plugin/src/main/java/org/gradle/testretry/internal/executer/framework/JunitTestFrameworkStrategy.java#L27-L34