gradle / test-retry-gradle-plugin

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

Gradle error: Receiver class org.gradle.testretry.internal.executer.RetryTestResultProcessor does not define or inherit an implementation of the resolved method 'abstract void failure(java.lang.Object, org.gradle.api.tasks.testing.TestFailure)' of interface org.gradle.api.internal.tasks.testing.TestResultProcessor. #267

Closed vshavrova-spaceiq closed 6 months ago

vshavrova-spaceiq commented 6 months ago

Getting this error

> Receiver class org.gradle.testretry.internal.executer.RetryTestResultProcessor does not define
or inherit an implementation of the resolved method 'abstract void
failure(java.lang.Object, org.gradle.api.tasks.testing.TestFailure)' of interface 
org.gradle.api.internal.tasks.testing.TestResultProcessor.

after test failed

Gradle version: 7.6 Junit: 5.9.3

Possible reason: https://discuss.gradle.org/t/my-plugin-cant-be-applied-when-plugin-is-built-with-gradle-7-1-1/40464

pshevche commented 6 months ago

@vshavrova-spaceiq , which version of the plugin are you using? This should be fixed in 1.4.0 with this commit: https://github.com/gradle/test-retry-gradle-plugin/commit/bb9bb862cefc15fa53be457f01a4bfc6657e904d. Could you please check if this happens with the latest plugin version, i.e., 1.5.8?

vshavrova-spaceiq commented 6 months ago

Yes, that works. Thanks.