Problem with NCover and NUnit using XML settings file, empty
Problem with NCover and NUnit using XML settings file, empty
I'm trying to use NCover with NUnit on a test assembly to check the coverage of my unit tests. I receive a "Coverage.Log" and "Coverage.Xml" file, however the "Coverage.Log" file reports that it "Failed to load symbols for" mscorlib.dll, nunit-console.exe, nunit-console-runner.dll, nunit.util.dll, system.xml.dll, nunit.core.dll, system.dll, nunit.framework.dll, and nunit.core.extensions.dll and the "Coverage.Xml" is empty:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="coverage.xsl" type="text/xsl"?>
<!-- saved from url=(0022)http://www.ncover.org/ -->
<coverage />
Below is the settings file I use when running NCover:
<?xml version="1.0" encoding="utf-8"?>
<ProfilerSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<CommandLineExe>"C:\Program Files\NUnit 2.2.8\bin\nunit-console.exe" "C:\Documents and Settings\ericrook\My Documents\Visual Studio 2003\Projects\GeneralLibTest\bin\Debug\Rook.General.Lib.Test.dll"</CommandLineExe>
<Assemblies>Rook.General.Lib</Assemblies>
<LogFile>C:\Coverage.Log</LogFile>
<CoverageXml>C:\Coverage.Xml</CoverageXml>
<WorkingDirectory>C:\Documents and Settings\ericrook\My Documents\Visual Studio 2003\Projects\GeneralLibTest\bin\Debug</WorkingDirectory>
<VerboseLog>false</VerboseLog>
<ProfileIIS>false</ProfileIIS>
<DumpOnErrorNormal>false</DumpOnErrorNormal>
<DumpOnErrorFull>false</DumpOnErrorFull>
<NoLog>false</NoLog>
</ProfilerSettings>
I run NCover with the following command:
NCover.Console.exe //r cover_settings.xml
I'm using Visual Studio 2003 with .NET framework v1.1.4322 on Windows XP Pro SP 2.
Thanks.