As noted in this PR against JDK mainline https://github.com/openjdk/jdk/pull/19627/files#r1637622775, having the ability to print the time taken for each junit test method can be useful. junit provides a way to do that through the use of (junit specific) Extension interface https://junit.org/junit5/docs/current/api/org.junit.jupiter.api/org/junit/jupiter/api/extension/Extension.html. jtreg could implement such an interface and package it to be available through the ServiceLoader mechanism noted there.
While this is specific to junit, we could also look into making this available for testng tests too, if it provides similar hooks.
While this is specific to junit, we could also look into making this available for testng tests too, if it provides similar hooks.
- duplicates
-
CODETOOLS-7903752 Include duration information in JUnit-based tests
-
- Resolved
-