RFR: 7904076: Include timestamp in the summary logs for junit and testng tests
Jaikiran Pai
jpai at openjdk.org
Sat Sep 6 13:47:34 UTC 2025
Can I please get a review of this change which enhances the log messages printed by jtreg when summarizing the test execution?
With this change, the started/finished log messages will now look like:
For testng:
[09:10:12.473] test p.q.Pass.m1(): success [10ms]
[09:10:13.123] test p.q.Pass.m2(): success [202ms]
For junit:
[09:55:22.278] STARTED p.JUnitTest::test 'test'
[09:55:22.279] SUCCESSFUL p.JUnitTest::test 'test' [1ms]
The timestamp associated with these logs would help during investigating test failures or test timeouts. No new self test has been added given the nature of this change.
-------------
Commit messages:
- 7904076: Include timestamp in the summary logs for junit and testng tests
Changes: https://git.openjdk.org/jtreg/pull/286/files
Webrev: https://webrevs.openjdk.org/?repo=jtreg&pr=286&range=00
Issue: https://bugs.openjdk.org/browse/CODETOOLS-7904076
Stats: 39 lines in 2 files changed: 26 ins; 0 del; 13 mod
Patch: https://git.openjdk.org/jtreg/pull/286.diff
Fetch: git fetch https://git.openjdk.org/jtreg.git pull/286/head:pull/286
PR: https://git.openjdk.org/jtreg/pull/286
More information about the jtreg-dev
mailing list