From 5d6fb278969d9da009cf7437777a4d438a2bb9b1 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Fri, 23 Aug 2024 17:16:40 -0400 Subject: [PATCH] fix: Test coverage broken by migration from setup.py to pyproject.toml `setup.py test` has been deprecated for years. See: - https://github.com/pypa/setuptools/issues/1684 - https://github.com/pypa/setuptools/pull/4522 --- Makefile | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 41faa1bd..41c87fc8 100644 --- a/Makefile +++ b/Makefile @@ -101,7 +101,7 @@ test-all: ## run tests on every Python version with tox tox test-coverage: ## run tests and record test coverage - coverage run --rcfile=setup.cfg setup.py test + coverage run --rcfile=setup.cfg -m unittest discover -v -c -b -s src -t src test-coverage-report: test-coverage-report-console test-coverage-report: test-coverage-report-xml diff --git a/tox.ini b/tox.ini index 1fe875ad..769cf9bc 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ envlist = [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/cl_sii -commands = coverage run --rcfile=setup.cfg setup.py test +commands = coverage run --rcfile=setup.cfg -m unittest discover -v -c -b -s src -t src deps = -r{toxinidir}/requirements.txt -r{toxinidir}/requirements-dev.txt