RFR: 7903752: Include duration information in JUnit-based tests
Jaikiran Pai
jpai at openjdk.org
Thu Jun 13 11:57:25 UTC 2024
On Thu, 13 Jun 2024 09:37:42 GMT, Christian Stein <cstein at openjdk.org> wrote:
> Please review this change to include duration information in JUnit-based tests.
>
> For example, see this excerpt from a `.jtr` file generated for the `JupiterTests` self-test.
>
> Before:
>
> #section:junit
> ...
> ----------System.err:(21/1306)----------
> STARTED JupiterTests::nullEmptyAndBlankStrings '[1] test('null')'
> SUCCESSFUL JupiterTests::nullEmptyAndBlankStrings '[1] test('null')'
> STARTED JupiterTests::nullEmptyAndBlankStrings '[2] test('')'
> SUCCESSFUL JupiterTests::nullEmptyAndBlankStrings '[2] test('')'
> ...
>
> After:
>
> #section:junit
> ...
> ----------System.err:(21/1306)----------
> STARTED JupiterTests::nullEmptyAndBlankStrings '[1] test('null')'
> SUCCESSFUL JupiterTests::nullEmptyAndBlankStrings '[1] test('null')' [24ms]
> STARTED JupiterTests::nullEmptyAndBlankStrings '[2] test('')'
> SUCCESSFUL JupiterTests::nullEmptyAndBlankStrings '[2] test('')' [1ms]
> ...
For similar changes in testng, I have created https://bugs.openjdk.org/browse/CODETOOLS-7903753 and opened a PR with the proposed changes.
-------------
PR Comment: https://git.openjdk.org/jtreg/pull/206#issuecomment-2165441877
More information about the jtreg-dev
mailing list