I'm building a rake task to manually get coverage into TeamCity using xUnit tests
I'm having some issues getting dotcover to work under an albacore exec rake task using relative paths from my rake file
@xUnitRunnerPath = Pathname.new('../../Tools/xUnit/xunitcontrib-dotcover.2.0/xunit.runner.utility.dll').realpath
@myTestDll = 'C:\PathToProj\My.Project.Tests\bin\Release\My.project.Tests.dll'
@outputDir = 'C:\PathToTestResults\'
exec :testCoverage do |cmd|
cmd.command = "C:/BuildAgent/tools/dotCover/dotCover.exe"
cmd.parameters = [
The error is unhelpful just telling me paths are wrong
Failed to convert relative paths to absolute in parameters for the 'cover'
command. The given path's format is not supported.
Type 'dotCover help' for usage.
This doesn't provide much help and doesn't give many clues as to what's going wrong or why.
Maybe I'm missing the relevant documentation here but it would be really helpful to be able to get this working.
This provided a little help as well