[node-patches] Change in ovirt-node[master]: test: Add junit output for unit tests
fabiand at fedoraproject.org
fabiand at fedoraproject.org
Mon Jun 24 07:43:10 UTC 2013
Fabian Deutsch has uploaded a new change for review.
Change subject: test: Add junit output for unit tests
......................................................................
test: Add junit output for unit tests
nosetests allows the generation of junit-like xml files containing the
results. This is useful with jenkins, as jenkins can use these xml files
to monitor trends in unittests.
Change-Id: Ic6d28b83ba309c1973302c48d5658d7bb96fb46f
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M tests/Makefile.am
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/21/16021/1
diff --git a/tests/Makefile.am b/tests/Makefile.am
index c380b0a..b8582ad 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -20,6 +20,8 @@
PYTHONUNITTESTS:=$(shell find nose/ -name \*.py)
PYTHONSOURCES:=$(PYTHONUNITTESTS)
+.PHONY: %.junit.xml
+
check-local: unittests
@echo -e "---\n Passed $@\n---"
@@ -28,3 +30,7 @@
%.nose: check-static
PYTHONPATH=$(PYTHONPATH) nosetests -v "$*"
+
+# unittests target with junit xml resultfile
+%.junit.xml:
+ $(MAKE) NOSE_WITH_XUNIT=True NOSE_XUNIT_FILE=$@ unittests
--
To view, visit http://gerrit.ovirt.org/16021
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic6d28b83ba309c1973302c48d5658d7bb96fb46f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>
More information about the node-patches
mailing list