ncover

ServiceLocator Kills NCover

I'm about 2 weeks into a project using ASP.NET MVC/Ninject2 and have a heap of unit tests using Moq and some integration tests using Cassini. Up until yesterday, everything passed in Studio 2008 using TestDriven.NET. "Test with Coverage" worked like a champ. After some new code was added, I now simply get an empty Coverage.xml files ONL...

Is there a TFS check-in policy for Nunit and NCover?

Hi. I would like to enforce my users to run unit tests and code coverage, but we are using Nunit and NCover, not MS Team system unit test\ coverage framework. How canI do it? Is there a matching check-in policy? Thanks ...

Nant build failing with NCover

I am currently setting up NCover as part of our CC.NET continuous integration. I've downloaded NCover 1.0.1 from sourceforge, and put the relevent DLLs into the correct nant folder so I can use the tasks in my build file. The build process instruments our source code correctly, and then goes on to build the solution using MSBuild. At t...

Has anybody integrated NCover with TFS?

Over the past year my group (some 50 engineers) moved onto Team Foundation Server and are now using it for source control, bug tracking and building. We have tens of thousands of lines of existing NUnit code that we continue to rely on and which we will never convert to MSTest. We have our builds set up such that NUnit posts results wi...

Passing quotes to nCover.console?

I'm calling ncover.console.exe and passing in parameters to be passed onto another program. One of those parameters has spaces in it, so I put it in quotes. However - ncover then strips off the quotes before passing the parameters on! Anyone else had this problem? And solved it? Thanks! ...

Relative paths with NCover and MSTest.exe

I know this is stupid, but I can't figure it out. In our solution, we specify the relative paths to a file one of our tests needs as - ../../../TestSuite/IniTestFiles/LocalRedir1.xml Now, this works fine when running the testing out of VS with MSTest.exe. However, in NCover all of the tests fail. Does anyone know how I can go about fix...

TeamCity MSBuild Gallio NCover Reporting

Hi All, I'm a complete build system newbie through and through. I've been playing with this for about two weeks on and off now and I just can't crack it, I think I've reached a point where I need a fresh pair of eyes. Ultimately I'm aiming for having a new NCover coverage report (the summary one at least) in my TeamCity build project....

NCover not covering an assembly?

I am having trouble getting NCover to properly cover a .dll. I have several test projects that use XUnit.NET and SubSpec to execute BDD-style specifications. All but one of these test suites runs perfectly in the version of NCover that comes with TestDriven.NET (1.5.8). However, I have one that refused to profile the actual tested assemb...

How do I fix a NCover "Duplicate method was added" error

Having performed some refactoring I am now finding that NCoverExplorer is unable to merge my test results. With NCover and NCoverExplorer v3.2.2 the merge appeared to work, but NCoverExplorer would fail to open the merged file with an error suggesting that the file didn't exist or couldn't be opened (which it did and could). So I tried ...

NCover installation

Hi, I'm installing NCover Complete trial version, and wondered if it's possible to install to a different folder and have NCover as part of the VCS? Otherwise the current version of NCover (v3.3.2) would be shared amongst all projects and I can invisage problems when upgrading NCover. TIA ...

How do I stop NCover from hijacking every .NET assembly?

Hey all, I know that this, strictly speaking, is not a programming question, but I think the only people who can answer it are programmers. I've never had this happen before, but on one workstation where I have NCover installed, it seems to be intercepting every .NET assembly I load. For example, after installing it, suddenly it takes ...

Gallio and MbUnit in NAnt

I am trying to use Gallio (v3.1)/MbUnit/NCover to run a unit test in my C# code, as part of the build process for my continuous integration system. I can get Gallio.Echo.exe to execute the tests and output an XML file (albeit it does seem to be checking all .dll files in the folder == approx. 6.5MB .xml file!!), but when I try to get NC...

TeamCity and NCover integration, exclude files/types just gives me errors

I am trying to integrate NCover 2 into TeamCity 5.0.1, and since I have some files in the project that are out of my control, I'd like to exclude those from the NCover statistics. In the TeamCity build runner setup, I have an option for "Additional NCover arguments", and by looking at the page that describes NCover parameters, I added t...

Is there a way to determine code coverage without running the code?

I am not asking the static code analysis which is provided by StyleCop or Fxcop. Both are having different purpose and it serves well. I am asking whether is there a way to find the code coverage of your user control or sub module? For ex, you have an application which uses the helper classes in a separate assembly. Inorder to ensure the...

NCover Hudson Plugin fails on Slave

Hi I'm trying to get NCover to work with our hudson server. The .NET jobs are run on a windows slave while the master is a linux box. After a job finishs successfully (also generating ncover+nunit reports), the NCover.Plugin tries to copy the report files from the ncover output directory to the job's directory. Here is the error messag...

TestDriven.net NCover problem

I cannot run NCover. I get the error: NCover couldn't create a coverage report I'm running it via TestDriven.net. I am using MSTest and also have resharper 4.2 installed. There isnt a problem with the tests, as it works on collegues machines. Any ideas what the problem is? ...

NCover couldn't create a coverage report. 0 Passed, 0 Failed, 0 Skipped

Hi, I am using Visual Studio 2008 Professional with TestDriven.NET 2.14.2190, Windows XP (x86). When i right click on my unit tests project, test with - Coverage, I obtain the following output: NCover couldn't create a coverage report. and the result: 0 Passed, 0 Failed, 0 Skipped I have no other versions of NCover installed, jus...

Issues integrating NCover with CC.NET, .NET framework 4.0 and MsTest

I'm implementing continuous integration with CruiseControl.NET, .NET 4.0, NCover and MsTest. On the build server I'm unable to run code coverage from the Ncover explorer or NCover console. When I run where vstesthost.exe from the Ncover console it returns the Visual Studio 9.0 path and does not seem to pick up .net framework 4.0. I've fo...

Setting up NCover for NUnit in FinalBuilder

Solved: Look at the bottom of this question for the working configuration I am attempting to set up NCover for usage in my FinalBuilder project, for a .NET 4.0 C# project, but my final coverage output file contains no coverage data. I am using: NCover 3.3.2 NUnit 2.5.4 FinalBuilder 6.3.0.2004 All tools are the latest official as ...

New NCover 3.4.2 makes all my MSTest unit tests fail

Yesterday, I decided to install the newest NCover version (3.4.2). However, when I ran it on my existing .ncover configuration file, the NCover output suddenly reported that all my MSTest tests failed. Of course those tests succeed when ran within Visual Studio. Because of this, NCover isn't able to determine any coverage. Somehow the o...