需要帮助配置CruiseControl.NET统计信息合并

需要帮助配置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!