aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHou Jingwen <houjingwen@huawei.com>2015-09-14 02:26:14 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-09-14 02:26:14 +0000
commitd4cfd8c43bd7c00ab07123d7886fc95f0a2ce6cc (patch)
tree15525f0f881dd23a4ece3455597dd7eb1990f0ca
parent3ec57cabfd94ee8257e1935751afed7e1731a3ea (diff)
parent54b9abc7b2b36a4b10e5cfd52006545f6686f93a (diff)
Merge "add coverage report in Jenkins for Yardstick."
-rw-r--r--.coveragerc7
-rw-r--r--.testr.conf4
-rw-r--r--tests/__init__.py0
3 files changed, 11 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 000000000..07ca20984
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,7 @@
+[run]
+branch = True
+source = yardstick
+
+[report]
+ignore_errors = True
+precision = 3
diff --git a/.testr.conf b/.testr.conf
new file mode 100644
index 000000000..126233527
--- /dev/null
+++ b/.testr.conf
@@ -0,0 +1,4 @@
+[DEFAULT]
+test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ./tests/unit $LISTOPT $IDOPTION
+test_id_option=--load-list $IDFILE
+test_list_option=--list
diff --git a/tests/__init__.py b/tests/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/__init__.py