NCover with NUnit
We are evaluating NCover and having some difficulties in making it work on two separate projects. Problem #1: WebServices project compiled into a dll in .NET1.1. Unit tests in a separate assembly, also .NET1.1. Run NCoverExplorer 2.1.0.0 with the following settings:
Path to app: C:\Program Files\NUnit 2.4.7\bin\nunit-console.exe
Workign folder: C:\Projects\Kreus2\source\kreusnet\bin
App args: UnitTests.Tests.dll
Everything else is default. This produces an empty Coverage.xml. (containing this: <?xml version="1.0" encoding="utf-8"?>
<!-- saved from url=(0022)<a href="http://www.ncover.com/">http://www.ncover.com/</a> -->
<coverage>
<documents>
<doc />
</documents>
</coverage> )
I checked to make sure we're generating pdb file... Also, same results with the -console version. Also, nunit runs units tests correctly when run as standalone and generates correct output when run as parameter to the ncover-console app.
Problem #2: .NET 2.0 library that's used in another project with a separate unit tests dll, similar to the problem listed above. Running NCover explorer with exact same parameters, except, of course, pointing to the new dlls. This time, actually get results -- 100% coverage -- i.e. NUnit exercised all code in the UnitTests DLL. This is of course, not what we want. We want to see what code was exercised in the DLL that the UnitTests ran against.
I'm sure we're doing something wrong in both cases. Please help.