summaryrefslogtreecommitdiffstats
path: root/.coveragerc
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-18 21:17:25 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-20 18:12:03 +0100
commitfbc8d14bec58035601b2bfd571c49993c9f907dc (patch)
treee8464daedd7e9bc4bfd2a6b0f10a93a747e209ad /.coveragerc
parent95f11aa9410c8db4794b51932931e6ee3da46402 (diff)
downloadopenshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.gz
openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.bz2
openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.xz
openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.zip
Configure pytest to run tests and coverage
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc15
1 files changed, 14 insertions, 1 deletions
diff --git a/.coveragerc b/.coveragerc
index e1d918755..2c3199a3e 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,5 +1,18 @@
[run]
-omit=
+branch = True
+omit =
*/lib/python*/site-packages/*
*/lib/python*/*
/usr/*
+ setup.py
+ # TODO(rhcarvalho): this is used to ignore test files from coverage report.
+ # We can make this less generic when we stick with a single test pattern in
+ # the repo.
+ test_*.py
+ *_tests.py
+
+[report]
+fail_under = 25
+
+[html]
+directory = cover