aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkubi <jean.gaoliang@huawei.com>2015-09-09 23:58:38 -0400
committerkubi <jean.gaoliang@huawei.com>2015-09-10 00:18:51 -0400
commit54b9abc7b2b36a4b10e5cfd52006545f6686f93a (patch)
treee198f56e65f0d3c16f0b2921632ee86785df0590
parent4f2fce70da878ad03dc77324f6916bfcae447e1e (diff)
add coverage report in Jenkins for Yardstick.
since coverage report based on master, coverage configure file should be merged to master at first then coverage shell script will be committed after coverage conf As first part, this patch only include two configure files and one init file : .testr.conf , .coveragerc, __init__.py Change-Id: I073e65b641144e4878595f073cd37081e4a4940b JIRA:YARDSTICK-108 Signed-off-by: kubi <jean.gaoliang@huawei.com>
-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