Include timestamp in the summary logs for junit and testng tests

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • jtreg8.1
    • Affects Version/s: None
    • Component/s: tools
    • None

      When a junit or testng test is run, jtreg prints the summary of that test execution. For example:

      For testng:

      test Test.alwaysFail(): failure [36ms]
      ...
      test Test.alwaysPass(): success [0ms]
      ...
      test Test.alwaysSkip(): skip [2ms]

      For junit:

      STARTED ExpSwitchNestingTest::testEswitch 'testEswitch()'
      SUCCESSFUL ExpSwitchNestingTest::testEswitch 'testEswitch()' [11130ms]
      STARTED ExpSwitchNestingTest::testBreakExpressionLabelDisambiguation 'testBreakExpressionLabelDisambiguation()'
      SUCCESSFUL ExpSwitchNestingTest::testBreakExpressionLabelDisambiguation 'testBreakExpressionLabelDisambiguation()' [127ms]
      ...

      Right now these log messages don't associate a timestamp with them, which sometimes makes it difficult to correlate with test failures or timeouts when investigating such issues. It would be good to include the timestamp with each of these summary logs.

            Assignee:
            Jaikiran Pai
            Reporter:
            Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: