[ 
https://issues.jenkins-ci.org/browse/JENKINS-13363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161416#comment-161416
 ] 

Marc Sanfacon commented on JENKINS-13363:
-----------------------------------------

I just attached a zip containing 2 unitTest++ files.

The total test time is 6.9 seconds. at the main test page, the total time 
states 1.9s, same as the duration from the results file - junitResult.xml - I 
pasted the content here.

<?xml version='1.0' encoding='UTF-8'?>
<result>
  <suites>
    <suite>
      
<file>E:\Jenkins\jobs\TestParser\workspace\generatedJUnitFiles\UnitTest\TEST--686659962.xml</file>
      <name>unittest</name>
      <duration>6.997</duration>
      <timestamp>1.999</timestamp>
      <cases>
        <case>
          <duration>1.999</duration>
          <className>ABC.DEF.GHI</className>
          <testName>Test2 (win32.Debug)</testName>
          <skipped>false</skipped>
          <failedSince>0</failedSince>
        </case>
        <case>
          <duration>4.998</duration>
          <className>ABC.DEF.GHI</className>
          <testName>Test (win32.Debug)</testName>
          <skipped>false</skipped>
          <failedSince>0</failedSince>
        </case>
      </cases>
    </suite>
  </suites>
  <duration>1.999</duration>
  <keepLongStdio>true</keepLongStdio>
</result>

                
> Total tests duration reported by xUnit does not match the total tests time
> --------------------------------------------------------------------------
>
>                 Key: JENKINS-13363
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-13363
>             Project: Jenkins
>          Issue Type: Bug
>          Components: xunit
>         Environment: Jenkins 1.457, Windows (Master) & Linux
>            Reporter: Marc Sanfacon
>            Assignee: gbois
>            Priority: Minor
>         Attachments: TestFiles.zip
>
>
> We are using xUnit to convert both nUnit & UnitTest++ reports for Jenkins.
> I just noticed that the total test duration displayed in Jenkins is invalid. 
> I opened the junitResult.xml file which I guess is generated by xUnit and the 
> duration at the end is definitely wrong.
> In my case, the duration shows:
>   <duration>228.79994</duration>
> And there were some test suites that lasted more than that
>     <suite>
>       <file>...\generatedJUnitFiles\NUnit\TEST--1009090779.xml</file>
>       <name>TestContracts</name>
>       <duration>658.13367</duration>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to