gradle / test-retry-gradle-plugin

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

Replace test class inheritence from a spec class with a common abstract spec class #200

Closed pshevche closed 1 year ago

pshevche commented 1 year ago

With the current setup, the IDE won't be able to recognize that methods of SpockFuncTest can also be executed in the context of e.g. Spock2FuncTest. This happens because SpockFuncTest is not an abstract class and it can't be made one, because its own tests won't run. I introduced a common abstract base spec that is now shared by all children specs. This setup supports executing tests in the context of any child spec via IDE.