report.dtd revision 4d4257ef3450ca2b5638f7b416ce94dc95e31187
1<!-- 
2   Copyright (c) 2009, 2014 Mountainminds GmbH & Co. KG and Contributors
3   All rights reserved. This program and the accompanying materials
4   are made available under the terms of the Eclipse Public License v1.0
5   which accompanies this distribution, and is available at
6   http://www.eclipse.org/legal/epl-v10.html
7     
8   Contributors:
9      Brock Janiczak - initial API and implementation
10      Marc R. Hoffmann - generalized report structure, line info, documentation
11      
12   $Id: $
13-->
14
15<!-- This DTD describes the JaCoCo XML report format. It is identified by the
16     following identifiers:
17
18        PUBID  = "-//JACOCO//DTD Report 1.0//EN"
19        SYSTEM = "report.dtd"
20-->
21
22<!-- report root node -->
23<!ELEMENT report (sessioninfo*, (group* | package*), counter*)>
24  <!ATTLIST report name CDATA #REQUIRED>
25
26<!-- information about a session which contributed execution data -->
27<!ELEMENT sessioninfo EMPTY>
28  <!-- session id -->
29  <!ATTLIST sessioninfo id CDATA #REQUIRED>
30  <!-- start time stamp -->
31  <!ATTLIST sessioninfo start CDATA #REQUIRED>
32  <!-- dump time stamp -->
33  <!ATTLIST sessioninfo dump CDATA #REQUIRED>
34
35<!-- representation of a group -->
36<!ELEMENT group ((group* | package*), counter*)>
37  <!-- group name -->
38  <!ATTLIST group name CDATA #REQUIRED>
39
40<!-- representation of a package -->
41<!ELEMENT package ((class | sourcefile)*, counter*)>
42  <!-- package name in VM notation -->
43  <!ATTLIST package name CDATA #REQUIRED>
44
45<!-- representation of a class -->
46<!ELEMENT class (method*, counter*)>
47  <!-- fully qualified VM name -->
48  <!ATTLIST class name CDATA #REQUIRED>
49
50<!-- representation of a method -->
51<!ELEMENT method (counter*)>
52  <!-- method name -->
53  <!ATTLIST method name CDATA #REQUIRED>
54  <!-- method descriptor -->
55  <!ATTLIST method desc CDATA #REQUIRED>
56  <!-- first source line number of this method -->
57  <!ATTLIST method line CDATA #IMPLIED>
58  
59<!-- representation of a source file -->
60<!ELEMENT sourcefile (line*, counter*)>
61  <!-- local source file name -->
62  <!ATTLIST sourcefile name CDATA #REQUIRED>
63
64<!-- representation of a source line -->
65<!ELEMENT line EMPTY>
66  <!-- line number -->
67  <!ATTLIST line nr CDATA #REQUIRED>
68  <!-- number of missed instructions -->
69  <!ATTLIST line mi CDATA #IMPLIED>
70  <!-- number of covered instructions -->
71  <!ATTLIST line ci CDATA #IMPLIED>
72  <!-- number of missed branches -->
73  <!ATTLIST line mb CDATA #IMPLIED>
74  <!-- number of covered branches -->
75  <!ATTLIST line cb CDATA #IMPLIED>
76
77<!-- coverage data counter for different metrics -->
78<!ELEMENT counter EMPTY>
79  <!-- metric type -->
80  <!ATTLIST counter type (INSTRUCTION|BRANCH|LINE|COMPLEXITY|METHOD|CLASS) #REQUIRED>
81  <!-- number of missed items -->
82  <!ATTLIST counter missed CDATA #REQUIRED>
83  <!-- number of covered items -->
84  <!ATTLIST counter covered CDATA #REQUIRED>