From fbc8d14bec58035601b2bfd571c49993c9f907dc Mon Sep 17 00:00:00 2001 From: Rodolfo Carvalho Date: Sat, 18 Feb 2017 21:17:25 +0100 Subject: Configure pytest to run tests and coverage --- .coveragerc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to '.coveragerc') 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 -- cgit v1.2.1