mpkorstanje commented on issue #3462: URL: https://github.com/apache/maven-surefire/issues/3462#issuecomment-5627432284
Since [3.6.0-M1](https://github.com/apache/maven-surefire/releases/tag/surefire-3.6.0-M1) Surefire uses the junit platform runner to run junit 3, junit 4 and TestNG tests via vintage engine and testng engine (#3179). The testng engine executes testng with a dry run to discover tests. So your `ISuiteListener` implementation should be invoked more than once. [Up to two times for discovery](https://github.com/junit-team/testng-engine/blob/a4ce3c65f0e986c6cb6cf33ea093bc3efbfec2a6/src/main/java/org/junit/support/testng/engine/TestNGTestEngine.java#L98-L106) and once for execution. Though I wouldn't expect it to be invoked 3 times prior to execution. @olamy does Surefire do discovery one test class/method at a time? I haven't looked at the code in a while. -- 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]
