From a4d35b2cd24731036c381248c3f0eb475dcd2f8f Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Mon, 4 May 2020 00:13:20 -0700 Subject: Add configuration for pytest --- setup.cfg | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 756233bd0..a7a5ff4fe 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,10 +1,6 @@ [easy_install] zip_ok = false -[nosetests] -match = ^test -nocapture = 1 - [aliases] dev = develop easy_install pyramid[testing] docs = develop easy_install pyramid[docs] @@ -21,3 +17,9 @@ ignore = ignore-default-rules = true ignore-bad-ideas = tests/pkgs/localeapp/**/*.mo + +[tool:pytest] +python_files = test_*.py +testpaths = + tests +addopts = -W always --cov -- cgit v1.2.3 From 57687face8ec3a912d6d886b8b2bcf27a97c82d0 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Mon, 4 May 2020 23:23:22 -0700 Subject: Disable coverage by default Use a special py38-cover testenv in tox to re-enable coverage reporting. --- setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index a7a5ff4fe..83f985f93 100644 --- a/setup.cfg +++ b/setup.cfg @@ -22,4 +22,4 @@ ignore-bad-ideas = python_files = test_*.py testpaths = tests -addopts = -W always --cov +addopts = -W always -- cgit v1.2.3