summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Wienand <iwienand@redhat.com>2017-02-15 13:58:13 +1100
committerIan Wienand <iwienand@redhat.com>2017-03-02 15:42:52 +1100
commit73ca7e086b813b2b6b81418f036b1a973029325c (patch)
tree95abddfacf73c1e4ccc074092377129bc6c561b9
parent629d14dbcb60f8f065c00ea293cef6179f8f1ea2 (diff)
downloadpbr-73ca7e086b813b2b6b81418f036b1a973029325c.tar.gz
Also generate XML coverage report
When using --coverage, also generate a machine-readable XML coverage report. This is useful to build tooling around automated tracking of coverage results. Change-Id: Idd54ecc627896cc5eab4903658f10a344bdb1778
-rw-r--r--pbr/testr_command.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbr/testr_command.py b/pbr/testr_command.py
index 2598a0b..e5ed026 100644
--- a/pbr/testr_command.py
+++ b/pbr/testr_command.py
@@ -133,6 +133,7 @@ class TestrReal(cmd.Command):
logger.debug("_coverage_after called")
os.system("coverage combine")
os.system("coverage html -d ./cover %s" % self.omit)
+ os.system("coverage xml -o ./cover/coverage.xml %s" % self.omit)
class TestrFake(cmd.Command):