Home | Crucible | Forums


Home » Cenqua User Forums » Clover for .NET

Thread: Can I see coverage in VS2005 using nunit test project

Welcome, Guest
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Replies: 1 - Pages: 1 - : Apr 17, 2021 9:57 AM by: Giri
Can I see coverage in VS2005 using nunit test project
Posted: Apr 12, 2021 9:03 AM
 

Hello,
I have written two project
one:
public class Utility
{
public string GetTestString()
{
return string.Empty;
}
}

and another:
[TestFixture()]
public class UtilityTest
{
[Test]
public void Test1()
{
Utility ut = new Utility();
Assert.IsTrue(ut.GetTestString().Length == 0, "error");
}
}

can I see coverage of the first from VS 2005?

Thanks

Re: Can I see coverage in VS2005 using nunit test project
Posted: Apr 17, 2021 9:57 AM   in response to:
 

Yes... u can.

1. Make the Test Project your "Startup Project".
2. Double click on "*.testrunconfig" and select "Code Coverage".
3. Run your solution (Assuming that ur test cases and class r in the same project).

4. Look for "code coverage" inthe "Test Result" window...( Look for "Code Coverage Results" )...

5. Expand to Test Class dll library ... to get the code coverage.