gradle / test-retry-gradle-plugin

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

Kotest's nested tests are failed to be retried #268

Closed pshevche closed 3 months ago

pshevche commented 3 months ago

Summary

Consider the following reproducer:

class FailingNestedTest : FreeSpec({

    "group of tests" - {
        "passing test" {
        }

        "failing test" {
            throw failure("Boom!")
        }
    }
})

The "failing test" will not be retried with the following failure:

Execution failed for task ':plugin:test'.
> The following test methods could not be retried, which is unexpected. Please file a bug report at https://github.com/gradle/test-retry-gradle-plugin/issues
     io.github.pshevche.act.FailingNestedTest#failing test
pshevche commented 3 months ago

Closing in favor of https://github.com/gradle/test-retry-gradle-plugin/issues/93