Skip to content

Commit

Permalink
fix: Test coverage broken by migration from setup.py to pyproject.toml
Browse files Browse the repository at this point in the history
`setup.py test` has been deprecated for years. See:

- pypa/setuptools#1684
- pypa/setuptools#4522
  • Loading branch information
jtrobles-cdd committed Aug 23, 2024
1 parent f2f0c3b commit 5d6fb27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d6fb27

Please sign in to comment.