Running NCover from MSBuild - Error MSB3073

Running NCover from MSBuild - Error MSB3073

Sorry for the duplicate post, first posted it in the old forums...


Hi,

I'm trying to run NCover from a msbuild file, but I ran into some errors :( I am using the most recent NCover and NUnit releases, application is written in .NET 2.0.

I am using this from the command line which works fine:
C:\Program Files\NCover>ncover.console //x NFPCoverage.xml
"C:\Program Files\NUnit-Net-2.0 2.2.6\bin\nunit-console" \"C:\Source Code\NFP\NFP.Domain.Services.Tests\bin\Debug\NFP.Domain.Services.Tests.dll"


Then in my msbuild file I added this line:
<!-- Run NCover analysis -->           
<Exec  Command='NCover.Console.exe //x NFPCoverage.xml "C:\Program Files\NUnit-Net-2.0 2.2.6\bin\nunit-console" \"C:\Source Code\NFP\NFP.Domain.Services.Tests\bin\Debug\NFP.Domain.Services.Tests.dll"' WorkingDirectory="C:\Program Files\NCover" />


That gives me the following error when I try to view the NCover Report on CruiseControl:
error MSB3073: The command "NCover.Console.exe //x NFPCoverage.xml "C:\Program Files\NUnit-Net-2.0 2.2.6\bin\nunit-console" \"C:\Source Code\NFP\NFP.Domain.Services.Tests\bin\Debug\NFP.Domain.Services.Tests.dll"" exited with code 1.
           
Can anyone help?
Thanks,
Thea Burger


Re: &quot;Unable to read beyond the end of the stream&quot; Error

At the end of execution, the program will pause while it reads out the coverage data. You can see this pause while running usually.  Can you give me an idea of how long that pause is?  this would be after NUnit finishes all of its output until you get the "Unable to read beyond the end of the stream" error.


Re: &quot;Unable to read beyond the end of the stream&quot; Error

8 to 9 seconds, usually.


Re: &quot;Unable to read beyond the end of the stream&quot; Error

Is it possible for you so send me a reproducible case (peter@waldschmidt.com)?  I have not seen this problem in a case where I could reproduce it.