gradle / test-retry-gradle-plugin

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

Adjustment for creating `JvmTestExecutionSpec` when retrying tests and using Gradle 8 #156

Closed snoopcheri closed 1 year ago

snoopcheri commented 1 year ago

This PR uses the new copyWithTestFramework method when creating a new JvmTestExecutionSpec in the test retry executer.

This ensures that we do not have to adapt again, if the execution spec gets changed again in the future.

The constructor for older Gradle versions is called via reflection. Therefore, constructors for older test-retry versions can be removed from the Gradle 8 code base.