NCover and NUnit
-
Hi, Im new to using NCover and NUnit and I have two questions I cant figure out. I have a project which has 3 classes: Currency.cs CurrencyTests.cs Program.cs Its a console App. When I use NCover it only details coverage of code in Program.cs (the class with the Main() method). How can I look at the code coverage of the Currency class, or any other one I should add? My second question is how to set NCover to run my tests, rather than just the main entry point of the program? I am building my tests in the same project. Thank you in advance,
-
Hi, Im new to using NCover and NUnit and I have two questions I cant figure out. I have a project which has 3 classes: Currency.cs CurrencyTests.cs Program.cs Its a console App. When I use NCover it only details coverage of code in Program.cs (the class with the Main() method). How can I look at the code coverage of the Currency class, or any other one I should add? My second question is how to set NCover to run my tests, rather than just the main entry point of the program? I am building my tests in the same project. Thank you in advance,
To run your test project from NCover you have to do some settings- 1-NCover does not run test cases it uses NUnit for it in your Test project go to -> properties->debug and set start up external project as nunit.exe ( give full path) 2- for command line argument write assembly name of your test project e.g. testproject.dll Now when u will run NCover it will start Nunit and Nunit will take your assembly as project.... Try it
Ethan Hunt 008 "Licensed to Code" 10th Cloud Corp Banglaore India