NDepend - Baseline Coverage by Assembly Query

29 Views Asked by At

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

There are 1 best solutions below

0
Patrick from NDepend team On

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: