NDEPEND-组装查询的基线覆盖范围

发布于 2025-01-30 15:51:19 字数 91 浏览 5 评论 0原文

是否可以通过组装与基线构建进行比较? 目前,我有一份报告显示通过组装覆盖范围,但是我想与每个组件的基线构建以及并排添加覆盖范围。 查询看起来如何?

多谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

空心空情空意 2025-02-06 15:51:19

可以通过这样的 cqlinq代码查询

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
}

这是结果:

几点:

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:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文