From f4ba4e8c79a77b0fb561753413d061e0aab174db Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 12 Mar 2020 16:31:49 +0100 Subject: [PATCH 1/2] Revert "test: Disable codecov" This reverts commit 1dba84096d888a15ae171c56572f12ca8d1cbd0d. --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1b0b104ad7b..3ceb2e3f2f6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,9 +23,7 @@ jobs: - python: '3.8' env: - TOXENV=du15 - # Disable codecov temporarily - # refs: https://github.com/sphinx-doc/sphinx/pull/7286#issuecomment-596617853 - # - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg" + - PYTEST_ADDOPTS="--cov ./ --cov-append --cov-config setup.cfg" - python: 'nightly' env: - TOXENV=du16 From 2495277b86c88bde59fcb3e5bc601395bc137c96 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 12 Mar 2020 16:41:34 +0100 Subject: [PATCH 2/2] pytest: configure testpaths This avoids having unrelated files being collected. --- setup.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.cfg b/setup.cfg index 6207a6c5365..21e1581d8b9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -59,6 +59,7 @@ markers = apidoc setup_command test_params +testpaths = tests [coverage:run] branch = True