Exclusion of method from coverage result

Exclusion of method from coverage result

I have some dll's for which i want to run code coverage using TestDriven.net (ncover) with vs2010. There are some methods which i don't want to be included in the coverage result since those methods are already written by some other programmer the option of using CoverageExclusion attribute is not feasible. Is there any other way out ?

Can the //ea attribute of ncover console help me ? if so how cause i am running the test coverage via testdriven.net which shows me the result in ncoverexplorer


RE: Exclusion of method from coverage result

Hi hbhatt,

Unfortunately, as far as I can tell, Testdriven.NET does not yet support using other NCover arguments, like //ea.

I found this post, where it was last discussed and Jamie Cansdale at Testdriven confirmed this:

https://groups.google.com/group/testdrivenusers/browse_thread/thread/a0dc80c40c5f8815?pli=1

I found another interesting post about using NCover 3.4.x with Testdriven, just FYI:

http://thepursuitofalife.com/how-to-connect-ncover-3-x-with-testdriven-net/

So, my best advice is to contact support@testdriven.net to find out the latest on configuring and using NCover parameters.

Best Regards,

NCover Support