v0.4.1 – Retry Bug Fix
Bug Fix
Retry not working in consumer projects (#bug)
RetryAnnotationTransformer implements IAnnotationTransformer — a TestNG
pre-suite interface that must be registered before test discovery begins.
In 0.4.0, it was only wired inside the framework's own Surefire config and
never auto-discovered in user projects.
Fix: Added META-INF/services/org.testng.ITestNGListener to the JAR.
TestNG's built-in ServiceLoader now picks it up automatically — no changes
needed in user's testng.xml or pom.xml.
Workaround for 0.4.0 users (if you cannot upgrade immediately):
Add this to your testng.xml:
<listeners>
<listener class-name="com.seleniumboot.listeners.RetryAnnotationTransformer"/>
</listeners>
Dependency
<dependency>
<groupId>io.github.seleniumboot</groupId>
<artifactId>selenium-boot</artifactId>
<version>0.4.1</version>
</dependency>