2018-01-28 20:07:59 +00:00
|
|
|
<?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>
|
2018-02-26 18:18:11 +00:00
|
|
|
{% for spec in specs %}
|
|
|
|
<testsuite name="{{ spec.name }}"
|
|
|
|
errors="{{ spec.nerrors }}"
|
|
|
|
tests="{{ spec.npackages }}"
|
|
|
|
failures="{{ spec.nfailures }}"
|
|
|
|
time="{{ spec.time }}"
|
|
|
|
timestamp="{{ spec.timestamp }}" >
|
2018-01-28 20:07:59 +00:00
|
|
|
<properties>
|
2018-02-26 18:18:11 +00:00
|
|
|
{% for property in spec.properties %}
|
2018-01-28 20:07:59 +00:00
|
|
|
<property name="{{ property.name }}" value="{{ property.value }}" />
|
|
|
|
{% endfor %}
|
|
|
|
</properties>
|
2018-02-26 18:18:11 +00:00
|
|
|
{% for package in spec.packages %}
|
|
|
|
<testcase classname="{{ package.name }}"
|
|
|
|
name="{{ package.id }}"
|
|
|
|
time="{{ package.elapsed_time }}">
|
|
|
|
{% if package.result == 'failure' %}
|
|
|
|
<failure message="{{ package.message }}">
|
|
|
|
{{ package.exception }}
|
2018-01-28 20:07:59 +00:00
|
|
|
</failure>
|
2018-02-26 18:18:11 +00:00
|
|
|
{% elif package.result == 'error' %}
|
|
|
|
<error message="{{ package.message }}">
|
|
|
|
{{ package.exception }}
|
2018-01-28 20:07:59 +00:00
|
|
|
</error>
|
2018-02-26 18:18:11 +00:00
|
|
|
{% elif package.result == 'skipped' %}
|
2018-01-28 20:07:59 +00:00
|
|
|
<skipped />
|
|
|
|
{% endif %}
|
2018-02-26 18:18:11 +00:00
|
|
|
{% if package.stdout %}
|
2018-01-28 20:07:59 +00:00
|
|
|
<system-out>
|
2018-02-26 18:18:11 +00:00
|
|
|
{{ package.stdout }}
|
2018-01-28 20:07:59 +00:00
|
|
|
</system-out>
|
|
|
|
{% endif %}
|
2018-02-26 18:18:11 +00:00
|
|
|
{% if package.stderr %}
|
2018-01-28 20:07:59 +00:00
|
|
|
<system-err>
|
2018-02-26 18:18:11 +00:00
|
|
|
{{ package.stderr }}
|
2018-01-28 20:07:59 +00:00
|
|
|
</system-err>
|
|
|
|
{% endif %}
|
|
|
|
</testcase>
|
|
|
|
{% endfor %}
|
|
|
|
{# Add an error tag? #}
|
|
|
|
</testsuite>
|
|
|
|
{% endfor %}
|
|
|
|
</testsuites>
|