Skip to content

Commit 5d6fb27

Browse files
committed
fix: Test coverage broken by migration from setup.py to pyproject.toml
`setup.py test` has been deprecated for years. See: - pypa/setuptools#1684 - pypa/setuptools#4522
1 parent f2f0c3b commit 5d6fb27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ test-all: ## run tests on every Python version with tox
101101
tox
102102

103103
test-coverage: ## run tests and record test coverage
104-
coverage run --rcfile=setup.cfg setup.py test
104+
coverage run --rcfile=setup.cfg -m unittest discover -v -c -b -s src -t src
105105

106106
test-coverage-report: test-coverage-report-console
107107
test-coverage-report: test-coverage-report-xml

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ envlist =
77
[testenv]
88
setenv =
99
PYTHONPATH = {toxinidir}:{toxinidir}/cl_sii
10-
commands = coverage run --rcfile=setup.cfg setup.py test
10+
commands = coverage run --rcfile=setup.cfg -m unittest discover -v -c -b -s src -t src
1111
deps =
1212
-r{toxinidir}/requirements.txt
1313
-r{toxinidir}/requirements-dev.txt

0 commit comments

Comments
 (0)