TeamCity 6.0 EAP NUnit PartCover

We currently have four build runners on one build configuration. First one does a build using msbuild, unit test, code coverage using PartCover, and some custom code analysis from a batch script. Second build runner runs the, FxCop static code analysis, and our third uses the TeamCity code duplicate finder.  Our fourth build runner we have another msbuild script that currently downloads the results from the FxCop run then combines the results with our custom statis code analysis to generate a combined report html page.  We would like to bring in the results of the PartCover to our custom report html page in the fourth build runner, but it seem TeamCity does not publish the artifacts from the PartCover results till after the fourth build runner has been ran.  Is it possible to make the artifacts be published earlier from PartCover without having to run it in the buildscript? Also, the artifacts are published to a strange artifact directory (.teamcity\.NETCoverage\results) which I was not able to download from like I was with the FxCop results which I use http://<server host name>/guestAuth/repository/download/DEV::Overall%20Build/$(CurrentBuild)/fxcop-result.xml to download the FxCop results.  Is there a way to change the directory the artifacts for PartCover are uploaded to or is there a pattern I can use to reach the file?

Thanks

Andrew Cook

1 comment

Andrew,

Sorry for such a big delay in replying.

Is it possible to make the artifacts be published earlier from PartCover without having to run it in the buildscript?


This is not possible right now as the feature ensures the report contains all the latest data produced by all the build steps.
You can file a feature request on this, however this does not seem to be a popular one.

  Also, the artifacts are published to a strange artifact directory (.teamcity\.NETCoverage\results) which I was not able to download from like I was with the FxCop results which I use http://<server host name>/guestAuth/repository/download/DEV::Overall%20Build/$(CurrentBuild)/fxcop-result.xml to download the FxCop results.  Is there a way to change the directory the artifacts for PartCover are uploaded to or is there a pattern I can use to reach the file?

The directory (.teamcity) in artifacts is designed to be present in build artifacts, but be hidden from the user (at least by default). It is meant to store files that are necessary for TeamCity features functionning (like displaying coverage reports).

It is not possible to change it, but you can download files from it using exactly the same approach: just add ".teamcity\.NETCoverage\<file name>" instead of "fxcop-result.xml"

0

Please sign in to leave a comment.