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

MSTest plugin doesn't process test result if attribute 'outcome' is not populated

    Details

    • Type: Patch
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: mstest-plugin
    • Labels:
    • Environment:
      Windoes 7, Jenkins 1.463, MSTest 0.7
    • Similar Issues:

      Description

      1. When UnitTestResult in trx file doesn't have 'outcome' attribute, it doesn't process and doesn' reporte as an error.
      2. When UnitTestResult in trx file doesn't have 'duration' attribute, it reports value as 'NaN' which causes summary time to be 0.

      Eg. Below unit test is treated as a success in MSTest report but it is treated as an error in trx file summary.

      <UnitTestResult executionId="70be9f02-00a0-49df-8c5a-8fb84a74b210" testId="44861a89-0ac6-f405-4b04-99f6f9d85d1e" testName="HasTargetTest" computerName="xxx-LT" startTime="2012-05-22T14:32:34.3525653-04:00" endTime="2012-05-22T14:32:41.9625760-04:00" testType="13cdc9d9-ddb5-4fa4-a97d-d965ccfc6d4b" testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d" relativeResultsDirectory="70be9f02-00a0-49df-8c5a-8fb84a74b210">
      <Output>
      <ErrorInfo>
      <Message>The agent process was stopped while the test was running.</Message>
      </ErrorInfo>
      </Output>
      </UnitTestResult>

      I have attached patch mstest-to-junit.xls file which processes above both conditions.

        Attachments

          Activity

          Hide
          rjoshi Rohit Joshi added a comment - - edited

          Updated file with removed commented lines and fixed typo. Please use attached with time stamp 22/May/12 7:57 PM

          Show
          rjoshi Rohit Joshi added a comment - - edited Updated file with removed commented lines and fixed typo. Please use attached with time stamp 22/May/12 7:57 PM
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: nilleb
          Path:
          src/test/resources/hudson/plugins/mstest/JENKINS-13862.trx
          http://jenkins-ci.org/commit/mstest-plugin/b40c4994f8a9c1e0274a79bf7c5f621633d35ef5
          Log:
          [FIXED JENKINS-13862] add test material for jenkins 13862, which has been fixed yesterday

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: nilleb Path: src/test/resources/hudson/plugins/mstest/ JENKINS-13862 .trx http://jenkins-ci.org/commit/mstest-plugin/b40c4994f8a9c1e0274a79bf7c5f621633d35ef5 Log: [FIXED JENKINS-13862] add test material for jenkins 13862, which has been fixed yesterday

            People

            • Assignee:
              nilleb Ivo Bellin Salarin
              Reporter:
              rjoshi Rohit Joshi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: