Noob: What am I doing wrong?
Noob: What am I doing wrong?
I know once someone points out the answer here, I'm going to feel like an idiot, but I just can't get NCover to profile my applications! I've created a simplified example. I have an assembly, MyClassLibrary.dll, with one class:
using System;
namespace MyClassLibrary { public class Class1 { private String value;
public Class1(String value)
{
if (String.IsNullOrEmpty(value))
{
throw new ArgumentNullException("value");
}
this.value = value;
}
}
}
I have an MbUnit test project with one class:
using MbUnit.Framework;
using MyClassLibrary;
namespace MyTestProject { [TestFixture] public class Class1Tests { [Test] public void Test() { Class1 myclass = new Class1("test"); } } }
The tests run fine. I try to profile this through NCover and MyClassLibrary.dll will not show up in the results list! The other included assemblies are there (MbUnit.dll, etc.) My command line looks like:
"C:\Program Files\NCover\NCover.Console.exe" //reg //w "C:\svn\Temp_NCover\MyTestProject\bin\Debug" //l "Coverage.log" "C:\Program Files\Gallio\bin\Gallio.Echo.exe" MyTestProject.dll
Is there some simple setting I'm overlooking?
Thanks for your help!
RE: Noob: What am I doing wrong?
use //pm "Gallio.Host.exe" in addition to the other arguments you posted
RE: Noob: What am I doing wrong?
Thank you! That worked perfectly.