file not found Follow
My test dll is in below path:
D:\DotCover\Test Project\Tes.Project.Test\bin\Debug\Test.Project.Test.dll
When I run below command
"D:\DotCover\dotCover.exe" analyse /ReportType=HTML /Output="D:\DotCover\Report\dotCover.html" "/TargetExecutable=D:\Xunit\XunitRunner\xunit.console.exe" /TargetWorkingDir=. "/TargetArguments=D:\DotCover\Test Project\Tes.Project.Test\bin\Debug\Test.Project.Test.dll"
I am getting below error:
JetBrains dotCover Console Runner 3.1.1. Build 20150521.1317
Copyright (c) 2009-2016 JetBrains s.r.o. All rights reserved.
[JetBrains dotCover] Coverage session started [2/22/2016 2:39:37 PM]
error: file not found: D:\DotCover\Test
It seems dotCover is not considering space in the dll path. Can any one tell me how to solve this issue.
Please sign in to leave a comment.
You need to use nested quotes for the TargetArguments. First quotes are needed for command line to parse correctly arguments for dotCover. And second quotes needed to parse arguments for xunit.console. You also need to escape quotes with backslash.
Try this:
/TargetArguments="\"D:\DotCover\Test Project\Tes.Project.Test\bin\Debug\Test.Project.Test.dll\""