olamy commented on issue #3462:
URL: 
https://github.com/apache/maven-surefire/issues/3462#issuecomment-6715375065

   #3572 reverts the scan change from #3470 because it broke #3548. TestNG 
listeners get called once per scanned class again during the scan, like in 
3.6.0.
   
   To avoid it, skip the work in your listener when `testng.mode.dryrun` is 
`true`:
   
   ```java
   if (Boolean.getBoolean("testng.mode.dryrun")) {
       return;
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to