Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7904076

Include timestamp in the summary logs for junit and testng tests

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jtreg8.1
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: