tfs - Getting Statistics to show up in TC -


i've setup teamcity sln file , got unit tests show cppunit plugin teamcity has. , test results in teamcity ui.

now i'm trying trending reports show unit tests , code coverage.

as of code coverage, we're using vsinstr.exe , vsperfmon.exe produces xml file.

i'm not quite sure of steps should taking make trending reports , code coverage(not important) show up.

i've seen this post, answer seems require editing build script, don't think work case since i'm building through msbuild , .sln file, , tests being ran through build.

so i'm trying statistics tab show up, , i'm not sure begin.

just add simple powershell step build configuration. this:

function teamcity-setbuildstatistic([string]$key, [string]$value) {     write-output "##teamcity[buildstatisticvalue key='$key' value='$value']" }  $outputfile = 'metricsresults.xml'  $xml = [xml] (get-content $outputfile)  $metrics = $xml.codemetricsreport.targets.target[0].modules.module.metrics $metrics.metric    | foreach { teamcity-setbuildstatistic "$($_.name)" $_.value.replace(',', '') } 

it uses xml output fxcop metrics. have update script actual schema.


Comments