file not found

Completed

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.

0
3 comments
Avatar
Permanently deleted user
Official comment

Oh, now I see what is the problem:

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="\"E:\Test Project\UnitTest\bin\Debug\UnitTest.dll\""

Avatar
Permanently deleted user

Hello,

please try this command line:

"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"

0
Avatar
Permanently deleted user

Hi Alexander,

Thanks for reply. I command with suggested changes, but I got same error. Below is the entire error stack ,

C:\Users\ravindra>"D:\DotCover\dotCover.exe" analyse /
ReportType=HTML /Output="E:\CIApplications\ThirdParty\Report\dotCover.html" /Tar
getExecutable="E:\CIApplications\ThirdParty\XunitRunner\xunit.console.exe" /Targ
etWorkingDir=. /TargetArguments="E:\Test Project\UnitTest\bin\Debug\UnitTest.dll
"
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/26/2016 3:22:08 AM]
error: file not found: E:\Test
[JetBrains dotCover] Coverage session finished [2/26/2016 3:22:11 AM]
[JetBrains dotCover] Analysed application exited with code '1'
[JetBrains dotCover] Coverage results post-processing started [2/26/2016 3:22:11
AM]
[JetBrains dotCover] Coverage results post-processing finished [2/26/2016 3:22:1
2 AM]
[JetBrains dotCover] Report generation started [2/26/2016 3:22:12 AM]
[JetBrains dotCover] Report generation finished [2/26/2016 3:22:12 AM]

Regards,

Ravindra.

0

Please sign in to leave a comment.