diff options
author | Jason DeTiberus <detiber@gmail.com> | 2017-02-20 12:36:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-20 12:36:23 -0500 |
commit | 3d80a37685da4948aad62419e49335cb5a140826 (patch) | |
tree | 2dabc7c9bee247b9e85a10ed4178765a54f7fe6c /setup.cfg | |
parent | bc26f6b0fc90d4501161e16dcf68130d03ca06a7 (diff) | |
parent | df1fd5b8f97c69eef10c02f317b62755c4519d92 (diff) | |
download | openshift-3d80a37685da4948aad62419e49335cb5a140826.tar.gz openshift-3d80a37685da4948aad62419e49335cb5a140826.tar.bz2 openshift-3d80a37685da4948aad62419e49335cb5a140826.tar.xz openshift-3d80a37685da4948aad62419e49335cb5a140826.zip |
Merge pull request #3419 from rhcarvalho/pytest
Migrate from nose to pytest
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 33 |
1 files changed, 19 insertions, 14 deletions
@@ -4,20 +4,6 @@ # will need to generate wheels for each Python version that you support. universal=1 -[nosetests] -tests=roles/lib_openshift/src/test/unit, - roles/lib_utils/src/test/unit, - roles/openshift_master_facts/test, - test -verbosity=2 -with-coverage=1 -cover-html=1 -cover-inclusive=1 -cover-min-percentage=25 -cover-erase=1 -detailed-errors=1 -cover-branches=1 - [yamllint] excludes=.tox,utils,files @@ -28,3 +14,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 |