From c44d406360881e9b0ed44a2327e10c20a84eb6a0 Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Mon, 30 Sep 2019 08:11:21 +0200 Subject: [PATCH] Generate subunit results XML file report Change-Id: Ibff0dd636d992a5c14c2fc39d55e0f368dc5e792 --- report/build.sh | 3 +++ requirements.txt | 1 + 2 files changed, 4 insertions(+) diff --git a/report/build.sh b/report/build.sh index bf6343bb2..9075e708b 100755 --- a/report/build.sh +++ b/report/build.sh @@ -9,11 +9,14 @@ TESTR_DIR=${TESTR_DIR:-$(pwd)} BUILD_DIR=${BUILD_DIR:-${TESTR_DIR}} SUBUNIT_FILE=${SUBUNIT_FILE:-${BUILD_DIR}/last.subunit} TESTR_RESULTS_HTML=${TESTR_RESULTS_HTML:-${BUILD_DIR}/tobiko_results.html} +TESTR_RESULTS_XML=${TESTR_RESULTS_XML:-${BUILD_DIR}/tobiko_results.xml} + make_testr_results_html() { mkdir -p "$(dirname ${SUBUNIT_FILE})" (cd "${TESTR_DIR}" && stestr last --subunit) > "${SUBUNIT_FILE}" (cd "${BUILD_DIR}" && subunit2html "${SUBUNIT_FILE}" "${TESTR_RESULTS_HTML}") + (cd "${BUILD_DIR}" && subunit2html "${SUBUNIT_FILE}" "${TESTR_RESULTS_XML}") } make_testr_results_html diff --git a/requirements.txt b/requirements.txt index d8c73fb17..32c858415 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ ansible>=2.4.0,<2.8.0 # GPLv3 fixtures>=3.0.0 # Apache-2.0/BSD keystoneauth1>=3.4.0 # Apache-2.0 Jinja2>=2.8.0 # BSD +junitxml>=0.7 # MIT netaddr>=0.7.18 # BSD neutron-lib>=1.25.0 # Apache-2.0 os-faults>=0.1.18 # Apache-2.0