Pex - Automated Whitebox Testing for .NET : Coverage Filtering

Coverage Filtering


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).

Attributes



Ignored By Default


  • Microsoft.Pex.Framework
  • the main assembly of the current TestFramework, to avoid having the coverage of the assertion/assumption classes

Extensibility


If you are not happy with the attributes that come with Pex, you can write your own by extending the PexCoverageFilterAttributeBase.
(c) Microsoft Corporation. All rights reserved. pex Wiki Documentation 0.93.50813.0