Assembly Coverage with MSBuild Tasks

Assembly Coverage with MSBuild Tasks

We're using the MSBuild NCover Reporting task and am having issues getting failures to occur when an assembly drops below the configured coverage. In fact, it seems only overall coverage is working.

Here is an example that doesn't work as documented...

SymbolCoverage View 92.0 SymbolCoverage Assembly 95.0 True Ffc.OnlineForms.*

The assembly is at 99% coverage but the overall coverage of all assemblies is at 92%. However, even with the above configured thresholds, the build still fails indicating the overall coverage is not at 95%.

Here is our ...

SymbolCoverage View 92.0 SymbolCoverage Assembly 95.0 True (?!Ffc.OnlineForms.Web)Ffc.OnlineForms. SymbolCoverage Assembly 89.0 True Ffc.OnlineForms.Web.

The first threshold specifies overall coverage must not drop below 92%. The second threshold element specifies that all assemblies meeting that regular expression must meet 95%. The third threshold element specifies that a specific assembly meet 89%.

Please note the second and third regular expression don't select overlapping assembly names. Any help is appreciated.


RE: Assembly Coverage with MSBuild Tasks

converted to support case


RE: Assembly Coverage with MSBuild Tasks

There is a bug in v3.0.18 or lower, 'Pattern' is actually looking for 'Name'. This is being resolved as we speak.

Sorry about the oversite.

Joe