From 887ef276265a229378fcb1c6f3967aa7a685b552 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Tue, 13 Dec 2022 23:29:52 +0100 Subject: [PATCH] Remove `python setup.py test` usage. --- .github/workflows/test-package.yml | 2 +- README.md | 3 --- setup.py | 1 - tox.ini | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml index bad69d1..443ec91 100644 --- a/.github/workflows/test-package.yml +++ b/.github/workflows/test-package.yml @@ -35,7 +35,7 @@ jobs: - name: Run tests run: | - coverage run --append --source=benedict setup.py test + coverage run --append --source=benedict -m unittest coverage xml -o ./coverage.xml - name: Upload coverage to Codecov diff --git a/README.md b/README.md index 5d3b38c..7e11b15 100644 --- a/README.md +++ b/README.md @@ -896,9 +896,6 @@ tox # or run tests using unittest python -m unittest - -# or run tests using setuptools -python setup.py test ``` ## License diff --git a/setup.py b/setup.py index 557846e..bf35e3c 100644 --- a/setup.py +++ b/setup.py @@ -135,5 +135,4 @@ setup( "Topic :: Text Processing :: Markup :: XML", "Topic :: Utilities", ], - test_suite="tests", ) diff --git a/tox.ini b/tox.ini index 831f72c..803ed31 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,6 @@ commands = pip install pip --upgrade pip install -r requirements.txt pip install -r requirements-test.txt - coverage run --append --source=benedict setup.py test + coverage run --append --source=benedict -m unittest coverage report -m codecov