需要帮助配置CruiseControl.NET统计信息合并 [英] Help needed configuring CruiseControl.NET statistics merge

查看:64
本文介绍了需要帮助配置CruiseControl.NET统计信息合并的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找有关如何从合并xml文件中获取统计信息的指针。文件结构如下所示。.

I am looking for a pointer as to how to get statistics out of a merge xml file. The file structure looks like this ..

<CyclometricComplexity>
  <module name="Srvr" type="unit" total="14" low="14" medium="0" high="0" ultra="0"/>
</CyclometricComplexity>

我创建了一个合并发布者来拾取此文件,但是无法配置统计信息发布者来进行拾取总,低,中,高和超值。

I have created a merge publisher to pick up this file, but cannot configure the statistics publisher to pick up values for total, low, medium, high and ultra.

有人能为我提供帮助的例子吗?

Does anyone have an example they can point me at to help me out?

谢谢

推荐答案

我想我已经找到了解决方法。首先,我需要了解XPath的工作原理!然后,我更改了输出工具,以创建整个项目的摘要,而不是尝试使CCNET将它们聚合在一起,因此现在输出的内容是整个项目的总计,低级,中级等。然后我将统计信息部分更改如下...

I think I found how to do this. First I needed to understand how XPath works! Then I changed my output tool to create a summary of the entire project, rather than trying to get CCNET to aggregate them together, so the out put now has total, low, medium, etc. for the entire project. Then I changed my statistics section to be as follows ...

  <firstMatch name='Total Methods' generateGraph='true' xpath='//CyclometricComplexity/@total'/>
  <firstMatch name='Low Complexity' generateGraph='true' xpath='//CyclometricComplexity/@low'/>
  <firstMatch name='Medium Complexity' generateGraph='true' xpath='//CyclometricComplexity/@medium'/>
  <firstMatch name='High Complexity' generateGraph='true' xpath='//CyclometricComplexity/@high'/>
  <firstMatch name='Ultra Complexity' generateGraph='true' xpath='//CyclometricComplexity/@ultra'/>

详细统计信息中现在显示了统计信息,现在我需要开始询问有关如何定制图!

The stats are now showing in the detailed statistics, and I need to now start asking questions about how to do bespoke graphs!

这篇关于需要帮助配置CruiseControl.NET统计信息合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆