Q: Integrating vsperfmon code coverage with Team City

My project is attempting to run typemock tests using mstest and gathering code coverage using vsperfmon which generates .coverage files. I have been able to successfully generate botht the .trx test results file and the .coverage code coverage file.

I am now at a loss as to how best to import the ,civerage file into Team City. From what I have seen regarding other people's experience, the vast majority or succsful analysis tool imports have been using an xml format which a .coverage file is not.

If it will be necessary to change the .coverage file to an xml format I would appreciate someone informing me of this.

Hope someone can help,


Comment actions Permalink

A bit of information can be found here: http://confluence.jetbrains.com/display/TCD7/How+To...#HowTo...-ImportcoverageresultsinTeamCity
However, as TeamCity does not know about .coverage format, you'll need to write some parser to extract necessary data from it.

Comment actions Permalink

I have managed to convert the coverage file to xml, and have used the service message format to import this to Team City. I do not know how to ens
ure that this will be correctly read by Team City However, since I do not know what particular xml format Team city Expects and how to translate this.

Any assistance would be greatly appreciated.

Comment actions Permalink

TeamCity does not support coverage xml formats. If you can generate HTML report, you can publish it as artifact and attach it to build. Additionally you can extract statistics and publish it via TeamCity service messages. Actually, I tried to describe all this in our documentation: http://confluence.jetbrains.com/display/TCD7/How+To...#HowTo...-ImportcoverageresultsinTeamCity


Please sign in to leave a comment.