Exclude generated classes?

Exclude generated classes?

Hello

I have another tricky question

We are using PLINQO to generate our classes from the database

I have managed to modify the PLINQO codesmith templates to a point to try and place [CoverageExclude] tags throughout the code. However, this is time consuming and complicated

The problem is that PLINQO generates 2 files both containing different elements of 1 class.

AClass.generated and AClass AClass is for custom code, this is the partial class that I need to test

AClass.generated, I do not need to test

Is there a way to tell NCover to ignore everything defined in the AClass.generated file, but check everything in the AClass file?

Paul


RE: Exclude generated classes?

Paul,

If the two sections are separated into different namespaces or filenames, you can do an exclude on them.

Namespace Exclude http://docs.ncover.com/ref/3-0/ncover-console/command-line/profiling-options#ea

File Exclude http://docs.ncover.com/ref/3-0/ncover-console/command-line/profiling-options#ef