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

UnitTest++ "time" element is ignored in results page, Duration field reported as 0ms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • xunit-plugin
    • None

      Hi,

      I'm using UnitTest++ to output a results XML file from my tests which I'm passing off to the XUnit plugin in Jenkins. My XML results (cut down version) file looks like this:

      <?xml version="1.0"?>
      <buildconfig>
      <unittest-results tests="4" failedtests="0" failures="0" time="7.045">
      <test suite="TimeFixedController" name="Construct" time="0"/>
      <test suite="TimeScaleOffsetController" name="Construct" time="0"/>
      <test suite="TimeScaleOffsetController" name="LoadSave" time="1.591"/>
      <test suite="PAnimatableComponent" name="LoadSave" time="5.454"/></unittest-results>
      </buildconfig>
      

      I've attached a screenshot of the problem. As you can see the "Duration" field of the tests is 0 ms. The XML clearly shows the time taken is not 0 ms.
      Also, in the top right you can see that the total length of time taken to run the tests is also 0 ms which is incorrect. I was expecting to see 7.045 ms as per the XML information.

      Am I misunderstanding what these Duration fields are or is this a bug, in which case can it be fixed?

      Thanks,
      Tom

            gbois Gregory Boissinot
            tfields Thomas Fields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: