summaryrefslogtreecommitdiff
path: root/templates/reports
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2018-02-26 13:18:11 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2018-05-15 05:43:07 -0700
commit6c5dbdd9cd73101c42252d400bc4168327633d3d (patch)
tree08efe67675fc00748c863ba95101938669a274a9 /templates/reports
parent0598f70de2b3e78b5f81af96a272c637a54f4d74 (diff)
downloadspack-6c5dbdd9cd73101c42252d400bc4168327633d3d.tar.gz
spack-6c5dbdd9cd73101c42252d400bc4168327633d3d.tar.bz2
spack-6c5dbdd9cd73101c42252d400bc4168327633d3d.tar.xz
spack-6c5dbdd9cd73101c42252d400bc4168327633d3d.zip
Format-agnostic data structure for reports
Replace the JUnit-specific terms 'testsuite' and 'testcase' with 'spec' and 'package', respectively.
Diffstat (limited to 'templates/reports')
-rw-r--r--templates/reports/junit.xml46
1 files changed, 23 insertions, 23 deletions
diff --git a/templates/reports/junit.xml b/templates/reports/junit.xml
index fe2566bd42..62e6db40c8 100644
--- a/templates/reports/junit.xml
+++ b/templates/reports/junit.xml
@@ -6,41 +6,41 @@
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 }}" >
+{% for spec in specs %}
+ <testsuite name="{{ spec.name }}"
+ errors="{{ spec.nerrors }}"
+ tests="{{ spec.npackages }}"
+ failures="{{ spec.nfailures }}"
+ time="{{ spec.time }}"
+ timestamp="{{ spec.timestamp }}" >
<properties>
-{% for property in suite.properties %}
+{% for property in spec.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 }}
+{% 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 }}
</failure>
-{% elif test.result == 'error' %}
- <error message="{{ test.message }}">
-{{ test.exception }}
+{% elif package.result == 'error' %}
+ <error message="{{ package.message }}">
+{{ package.exception }}
</error>
-{% elif test.result == 'skipped' %}
+{% elif package.result == 'skipped' %}
<skipped />
{% endif %}
-{% if test.stdout %}
+{% if package.stdout %}
<system-out>
-{{ test.stdout }}
+{{ package.stdout }}
</system-out>
{% endif %}
-{% if test.stderr %}
+{% if package.stderr %}
<system-err>
-{{ test.stderr }}
+{{ package.stderr }}
</system-err>
{% endif %}
</testcase>