I recently updated our PartCover from 2.3 to 4.0 on the build agent. That got me past the first problem . Now a partcover code coverage xml file is produced (I see it in .teamcity artifacts folder) but it is empty. That is, the xml consists of the root node only, and is otherwise empty. The build is not failing, there is just no coverage data being collected.
The build agent log shows this message:
[2010-08-27 09:16:05,424] out - TeamCity_Generated_NUnitTests:
[2010-08-27 09:16:05,424] out - c:\BuildAgent\plugins\dotnetPlugin\bin\JetBrains.BuildServer.NUnitLauncher.exe "@@" C:\BuildAgent\temp\buildTmp\tmp2175.tmp
[2010-08-27 09:16:07,434] out - 2010-08-27 09:16:07,413  WARN JetBrains.TeamCity.CoverageSupport.PartCover.PartCoverServerRegistrar - Failed to find PartCover.CorDriver.dll. Probably wrong path to PartCover. No registration will be performed
I can run partcover 4.0 on the build agent manually and it works as expected, a full xml output file is created.
My guess is that TeamCity is COM registering this dll on the fly, but said dll does not exist in version 4.0. Is that correct?
And if so, I guess that means I'll need to script the partcover/nunit task manually, correct?
If I do script it, how do I pull the partcover result xml file into TC such that I get that nifty green coverage delta report on the build Overview page? If I manually place it into the otherwise automatically created .teamcity/.NetCoverage/results/file.tmp artifact location perhaps?