blob: fe2566bd427c9d745d3efe73e473942cc7bb01bf (
plain) (
blame)
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
44
45
46
47
48
49
50
51
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file has been modeled after the basic
specifications at this url:
http://help.catchsoftware.com/display/ET/JUnit+Format
-->
<testsuites>
{% for suite in test_suites %}
<testsuite name="{{ suite.name }}"
errors="{{ suite.nerrors }}"
tests="{{ suite.ntests }}"
failures="{{ suite.nfailures }}"
time="{{ suite.time }}"
timestamp="{{ suite.timestamp }}" >
<properties>
{% for property in suite.properties %}
<property name="{{ property.name }}" value="{{ property.value }}" />
{% endfor %}
</properties>
{% for test in suite.testcases %}
<testcase classname="{{ test.name }}"
name="{{ test.id }}"
time="{{ test.elapsed_time }}">
{% if test.result == 'failure' %}
<failure message="{{ test.message }}">
{{ test.exception }}
</failure>
{% elif test.result == 'error' %}
<error message="{{ test.message }}">
{{ test.exception }}
</error>
{% elif test.result == 'skipped' %}
<skipped />
{% endif %}
{% if test.stdout %}
<system-out>
{{ test.stdout }}
</system-out>
{% endif %}
{% if test.stderr %}
<system-err>
{{ test.stderr }}
</system-err>
{% endif %}
</testcase>
{% endfor %}
{# Add an error tag? #}
</testsuite>
{% endfor %}
</testsuites>
|