diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-18 21:17:25 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-20 18:12:03 +0100 |
commit | fbc8d14bec58035601b2bfd571c49993c9f907dc (patch) | |
tree | e8464daedd7e9bc4bfd2a6b0f10a93a747e209ad /setup.cfg | |
parent | 95f11aa9410c8db4794b51932931e6ee3da46402 (diff) | |
download | openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.gz openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.bz2 openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.tar.xz openshift-fbc8d14bec58035601b2bfd571c49993c9f907dc.zip |
Configure pytest to run tests and coverage
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -28,3 +28,22 @@ lint_disable=fixme,locally-disabled,file-ignored,duplicate-code exclude=.tox/*,utils/*,inventory/* max_line_length = 120 ignore = E501,T003 + +[tool:pytest] +norecursedirs = + .* + __pycache__ + cover + docs + # utils have its own config + utils +python_files = + # TODO(rhcarvalho): rename test files to follow a single pattern. "test*.py" + # is Python unittest's default, while pytest discovers both "test_*.py" and + # "*_test.py" by default. + test_*.py + *_tests.py +addopts = + --cov=. + --cov-report=term + --cov-report=html |