commit 493b552073477554d6be655e91bffa09ac16703c
Author: Michal Srb <msrb(a)redhat.com>
Date: Sat Oct 17 00:47:16 2015 +0200
Generate cobertura-style XML report
.gitignore | 2 ++
test-requirements.txt | 1 +
test/run_tests.py | 1 +
vagrant_bootstrap.sh | 3 ++-
4 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 7184e56..e1402c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,6 +13,8 @@ python/build/
python/javapackages.egg-info/
python/javapackages/version.py
test/nosetests.xml
+test/coverage.xml
+test/.coverage
doc/images/xmvn.svg
doc/doc
diff --git a/test-requirements.txt b/test-requirements.txt
index f3c7e8e..936848a 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1 +1,2 @@
nose
+nosexcover
diff --git a/test/run_tests.py b/test/run_tests.py
index cf3989a..a071a50 100755
--- a/test/run_tests.py
+++ b/test/run_tests.py
@@ -45,6 +45,7 @@ if __name__ == "__main__":
# generate xunit report, if nose version is at least 1.x.x
if nose.__versioninfo__[0] > 0:
args.append("--with-xunit")
+ args.append("--with-xcoverage")
if len(exclude) > 1:
args += exclude
diff --git a/vagrant_bootstrap.sh b/vagrant_bootstrap.sh
index e9a1c0d..1e84e40 100644
--- a/vagrant_bootstrap.sh
+++ b/vagrant_bootstrap.sh
@@ -10,4 +10,5 @@ dnf install -y \
python{,3} \
python{,3}-lxml \
python{,3}-six \
- python{,3}-nose
+ python{,3}-nose \
+ python{,3}-nose-xcover
Show replies by date