[
https://issues.jenkins-ci.org/browse/JENKINS-13862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rohit Joshi updated JENKINS-13862:
----------------------------------
Attachment: mstest-to-junit.xsl
Updated file with removed commented lines and fixed typo.
> MSTest plugin doesn't process test result if attribute 'outcome' is not
> populated
> ---------------------------------------------------------------------------------
>
> Key: JENKINS-13862
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13862
> Project: Jenkins
> Issue Type: Patch
> Components: mstest
> Affects Versions: current
> Environment: Windoes 7, Jenkins 1.463, MSTest 0.7
> Reporter: Rohit Joshi
> Assignee: acmarques
> Priority: Minor
> Labels: mstest
> Fix For: current
>
> Attachments: mstest-to-junit.xsl, mstest-to-junit.xsl
>
>
> 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.
--
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