When you want to analyze relative code coverage
, it is important that you define the types and assemblies that should be considered in the analysis.
Pex provides a set of attributes
to specify if methods of a type should be ignored, excluded or included. These settings can be set at different levels (see Settings Waterfall
Ignored By Default
- the main assembly of the current TestFramework, to avoid having the coverage of the assertion/assumption classes
If you are not happy with the attributes that come with Pex, you can write your own by extending the PexCoverageFilterAttributeBase