[JIRA] [mstest-plugin] (JENKINS-28517) [MSTEST] XML coverage report file not found

333 views
Skip to first unread message

daniel@wagners.name (JIRA)

unread,
May 21, 2015, 6:15:02 AM5/21/15
to jenkinsc...@googlegroups.com
Daniel Wagner created an issue
 
Jenkins / Bug JENKINS-28517
[MSTEST] XML coverage report file not found
Issue Type: Bug Bug
Assignee: Ivo Bellin Salarin
Components: mstest-plugin
Created: 21/May/15 10:14 AM
Environment: Jenkins 1.614
MSTest Plugin 0.18
VSTest Runner plugin 1.0.4
Priority: Minor Minor
Reporter: Daniel Wagner

MSTest Plugin reports the following error after a successful build with MSBuild and test run with VSTest Runner. The mentioned file TestResults\vstest.coveragexml exists (I generate it with "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe" analyze /output:"%WORKSPACE%\TestResults\vstest.coveragexml" "%VSTEST_RESULT_COVERAGE%"

MSTest: Processing tests results in file(s) E:\jenkins\data\jobs\ProjectX\workspace\TestResults\jenkins_ARIEL 2015-05-21 10_16_33.trx
MSTest: E:\jenkins\data\jobs\ProjectX\workspace\TestResults\jenkins_ARIEL 2015-05-21 10_16_33.trx
[MSTEST] XML coverage report file not found: E:\jenkins\data\jobs\ProjectX\workspace\TestResults\vstest.coveragexml
[MSTEST] XML coverage report file not found: E:\jenkins\data\jobs\ProjectX\workspace\TestResults\jenkins_ARIEL 2015-05-21 10_16_33.coveragexml
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

ivo.bellinsalarin@gmail.com (JIRA)

unread,
May 21, 2015, 7:16:01 AM5/21/15
to jenkinsc...@googlegroups.com
Ivo Bellin Salarin commented on Bug JENKINS-28517
 
Re: [MSTEST] XML coverage report file not found

Thanks for your feedback, Daniel.

I am sorry, the mstest-plugin message you point out is slightly wrong. It should state something different:

[MSTEST] XML coverage report file not found or its format is not supported [..]

The problem you experience is due to the fact that .coveragexml files content may differ according to the tool which has produced them. The mstest-plugin reads the format produced by Visual Studio (or by an handmade tool written according to the instructions gave on MSDN). SonarQube reads the format produced by CodeCoverage.exe uniquely. Visual Studio is able to read both formats.

I hope to have the time to produce an XSLT which converts the CodeCoverage.exe format to the format produced by Visual Studio. Until then, I suggest you to use a different tool to produce the .coveragexml file..

I have updated the wiki for the MSTest-plugin according to the above text. It could take a while before the wiki changes get published.

daniel@wagners.name (JIRA)

unread,
May 22, 2015, 5:50:03 AM5/22/15
to jenkinsc...@googlegroups.com

Do you have any suggestion which tool to use for generation of the .coveragexml?

ivo.bellinsalarin@gmail.com (JIRA)

unread,
May 22, 2015, 1:59:01 PM5/22/15
to jenkinsc...@googlegroups.com

daniel@wagners.name (JIRA)

unread,
May 23, 2015, 1:42:08 AM5/23/15
to jenkinsc...@googlegroups.com

Conversion with https://github.com/yasu-s/CoverageConverter doesn't solve the problem. I'll give you an update when I tried the other approach.

ivo.bellinsalarin@gmail.com (JIRA)

unread,
May 23, 2015, 1:55:05 AM5/23/15
to jenkinsc...@googlegroups.com

Could you please add some details about what's going wrong with the yasu-s coverage converter?
Could you please provide the coveragexml files you get, if any?

ivo.bellinsalarin@gmail.com (JIRA)

unread,
Jun 1, 2015, 4:21:01 PM6/1/15
to jenkinsc...@googlegroups.com

daniel@wagners.name (JIRA)

unread,
Jul 13, 2015, 8:30:04 AM7/13/15
to jenkinsc...@googlegroups.com

I've to finish my sample project to create sample data but didn't find the time yet.

ivo.bellinsalarin@gmail.com (JIRA)

unread,
Sep 15, 2015, 12:50:04 AM9/15/15
to jenkinsc...@googlegroups.com

You could find useful the documentation produced by an anonymous user (on the wiki):
https://wiki.jenkins-ci.org/display/JENKINS/MSTest+Plugin

I've also started to work on a couple of XSL transforms to convert back and forth to the VisualStudio/CodeCoverage.exe format. They're available in the github repository : https://github.com/jenkinsci/mstest-plugin/tree/master/src/main/resources/hudson/plugins/mstest

Reply all
Reply to author
Forward
0 new messages