TeamCity teamcity-info.xml

TeamCity teamcity-info.xml

Hi,

After running NCover etc. I want to update Team City's teamcity-info.xml file with coverage results that can then be displayed on the project summary page.

At the moment the only way I can think of populating this field is to read the coveragesummary.html and extract the values.

Eg

<!-- or SUCCESS --> fitnesse: 45 coverage: 90%

Is there an easier way?

Below is a link re updating the team city summary update. http://confluence.jetbrains.net/display/TCD3/Build+Script+Interaction+with+TeamCity

Thanks

David


RE: TeamCity teamcity-info.xml

David,

My recommendation would be to generate an XML report with NCover.Reporting and read that file. Your command should look something like:

NCover.Reporting In.xml //or SymbolModuleNamespaceClassMethod:Xml:Report.xml

We use the same format as we use for our trend files, so this document should be useful for understanding the format:

http://docs.ncover.com/kb/ncover-trend-and-report-file-definition/