Skip to content

v0.4.1 – Retry Bug Fix

Choose a tag to compare

@shossain786 shossain786 released this 15 Mar 10:44
· 163 commits to master since this release

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>