summaryrefslogtreecommitdiff
path: root/.coveragerc
diff options
context:
space:
mode:
authorJUN JIE NAN <nanjj@cn.ibm.com>2014-01-24 23:54:09 +0800
committerJUN JIE NAN <nanjj@cn.ibm.com>2014-01-28 21:49:40 +0800
commit58581ce92c403e0744766d1a8232aa248e33dda0 (patch)
tree29ca1d34d7b669d13290b2b76ee3427822db4519 /.coveragerc
parent3d2517b2c792afc40b5a7af7734e7d822020a1bf (diff)
downloadheat-58581ce92c403e0744766d1a8232aa248e33dda0.tar.gz
Enabled source code coverage for contrib directory
So we can check the source code coverage status of contrib directory. It's obvious to adjust omit and source properties in .coveragerc. The tricky code in .testr.conf is caused by the behavior of setuptools. When running coverage, setuptools set environment variable PYTHON to 'coverage run --source package --parallel-mode' and call testr to run the tests. The value specified via command line option --source will overwrite the source value in .coveragerc. So contrib directory is excluded from coverage run. The change in .testr.conf removed the '--source heat' specified by setuptools. So the source value specified in .coveragerc will be used by coverage. Change-Id: I92f6b058067ace3b3370a3670856ab3dc073b52f
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.coveragerc b/.coveragerc
index 88cb660bb..4625b8853 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,7 +1,7 @@
[run]
branch = True
-source = heat
-omit = heat/tests/*,heat/openstack/*
+source = heat,contrib
+omit = */tests/*,heat/openstack/*
[report]
ignore-errors = True