RFR: 7904071: JTReg should report stats of test collections

Daniel Jeliński djelinski at openjdk.org
Mon Sep 1 15:30:58 UTC 2025


On Mon, 1 Sep 2025 12:50:52 GMT, Christian Stein <cstein at openjdk.org> wrote:

> Please review this change accumulating the count numbers of TestNG's and JUnit's text report files and prints them after a test run as follows:
> 
>> `Framework-based tests: 188, TestNG: 104, JUnit: 84`
> 
> Note that an internal, yet public, API of `SummaryReporter` was changed to be package-private now.

src/share/classes/com/sun/javatest/regtest/report/RegressionReporter.java line 119:

> 117:                 if (sumOfCounts > 0) {
> 118:                     log.println(String.format("Framework-based tests: %d, TestNG: %d, JUnit: %d",
> 119:                             sumOfCounts, countTestNG, countJUnit));

I'd skip printing `sumOfCounts` and only print the individual testNG and JUnit counts; without looking at the code it's not clear to me that "Framework-based tests" is a sum of the two.

While at it, any chance to print the number of skipped test cases in JUnit / testNG?

-------------

PR Review Comment: https://git.openjdk.org/jtreg/pull/283#discussion_r2314232458


More information about the jtreg-dev mailing list