-
Notifications
You must be signed in to change notification settings - Fork 0
/
rules.xml
43 lines (36 loc) · 1.53 KB
/
rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0"?>
<!--
This file tells the xml parser how to turn the xml produced by cobertura into java objects.
-->
<digester-rules>
<object-create-rule pattern="coverage" classname="coberturaParsing.Report" />
<pattern value="coverage/packages/package" >
<object-create-rule classname="coberturaParsing.PackageGroup" />
<set-properties-rule>
<alias attr-name="name" prop-name="name" />
</set-properties-rule>
<set-next-rule methodname="addPackage" paramcount="1"/>
</pattern>
<pattern value="coverage/packages/package/classes/class">
<object-create-rule classname="coberturaParsing.Classs" />
<set-properties-rule>
<alias attr-name="name" prop-name="name" />
</set-properties-rule>
<set-next-rule methodname="addClass" paramcount="1"/>
</pattern>
<pattern value="coverage/packages/package/classes/class/methods/method" >
<object-create-rule classname="coberturaParsing.Methodd" />
<set-properties-rule>
<alias attr-name="name" prop-name="name" />
</set-properties-rule>
<set-next-rule methodname="addMethod" paramcount="1" />
</pattern>
<pattern value="coverage/packages/package/classes/class/methods/method/lines/line" >
<object-create-rule classname="coberturaParsing.Line" />
<set-properties-rule>
<alias attr-name="number" prop-name="lineNumber" />
<alias attr-name="hits" prop-name="numberOfHits" />
</set-properties-rule>
<set-next-rule methodname="addLine" paramcount="1" />
</pattern>
</digester-rules>