NDepend - Baseline Coverage by Assembly Query

Viewed 20

is it possible to have a comparison by assembly to the baseline build? At the moment I have a report that shows the coverage by assembly, but I would like to add the coverage compared to the baseline build for each assembly as well side by side. How would a query look like?

Thanks a lot.

1 Answers

This can be achieved with such CQLinq code query:

from a in Application.Assemblies

select new { a, a.PercentageCoverage,
olderCov = a.OlderVersion() == null ? -1 : 
           a.OlderVersion().PercentageCoverage,
diffCov = a.OlderVersion() == null ? -1 : 
          a.PercentageCoverage - a.OlderVersion().PercentageCoverage
}

Here is a screenshot of the result: NDepend assembly code coverage compared

Several points:

Related