gradle / test-retry-gradle-plugin

Gradle plugin to retry tests that have failed to mitigate test flakiness.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run command before retry or before last retry

oeresundsgruppen opened this issue · comments

commented

Would it be an idea to allow to run a command before a retry or before last retry, e.g. restart a service, reload db etc.

CommandBeforeRetry=sqlcmd delete from tableX
CommandBeforeLastRetry=gradlew restartX && wait 60

Maybe I could add this and make PR for your review ?

commented

This is beneficial when tests are not mackovian, e.g. they built up state...