Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52419

Blue Ocean Test Results have no duration

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      cloud
    • Similar Issues:

      Description

      In the Blue Ocean "Test" tab view there are no times on tests. all tests show <1 for the time.

      The same job results when viewing in classic mode has times / test duration.

      the format is Junit.xml.

      (I tried to attach screenshots but was unable to)

        Attachments

          Issue Links

            Activity

            Hide
            jcharr1 Jason Charrier added a comment -

            I have this problem, too. Running UI tests on iOS apps that definitely take more than 1 second.

            Show
            jcharr1 Jason Charrier added a comment - I have this problem, too. Running UI tests on iOS apps that definitely take more than 1 second.
            Hide
            felixge Felix Geisendörfer added a comment -

            I have the same issue and debugged it a little bit. I found if I manually create a test.xml file with something like this the duration will be displayed as "12s":

            {{ <testcase classname="myClass" name="myTest" time="12300.05">}}

            However, in junit XML the time is given in seconds, so the display is wrong.

            My theory is that the TimeDuration React component expects the time to be given in milliseconds (as is common in JS), but there is a missing step of converting the junit test duration from seconds to milliseconds.

            I tried to create PR to fix this, but I was unable all the levels of indirections between the Java code and the React stuff to identify the right place in the code to fix this. But I hope my comment may be helpful and this can be fixed easily.

            Show
            felixge Felix Geisendörfer added a comment - I have the same issue and debugged it a little bit. I found if I manually create a test.xml file with something like this the duration will be displayed as "12s": {{ <testcase classname="myClass" name="myTest" time="12300.05">}} However, in junit XML the time is given in seconds, so the display is wrong. My theory is that the TimeDuration React component expects the time to be given in milliseconds (as is common in JS), but there is a missing step of converting the junit test duration from seconds to milliseconds. I tried to create PR to fix this, but I was unable all the levels of indirections between the Java code and the React stuff to identify the right place in the code to fix this. But I hope my comment may be helpful and this can be fixed easily.
            Hide
            kshultz Karl Shultz added a comment -

            Hi inbar rose, Jason Charrier, and Felix Geisendörfer - Craig Rodrigues recently submitted a PR for exactly this issue, and that PR has been merged to master. Felix was on the right track with the milliseconds thing.

            I imagine that the next release of Blue Ocean will pick this up, so I'm going to mark this bug report as Resolved/Fixed, as well as referencing JENKINS-52944.

            Thanks for reporting it!

            Show
            kshultz Karl Shultz added a comment - Hi inbar rose , Jason Charrier , and Felix Geisendörfer - Craig Rodrigues recently submitted a PR for exactly this issue, and that PR has been merged to master . Felix was on the right track with the milliseconds thing. I imagine that the next release of Blue Ocean will pick this up, so I'm going to mark this bug report as Resolved/Fixed, as well as referencing JENKINS-52944 . Thanks for reporting it!
            Hide
            kshultz Karl Shultz added a comment -

            Marking as fixed, as described above. The fix PR is 1794.

            Show
            kshultz Karl Shultz added a comment - Marking as fixed, as described above. The fix PR is 1794 .

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              inbarrose inbar rose
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: