From 8c5633eb6c86da991a0db624a50f9678c5522e4c Mon Sep 17 00:00:00 2001 From: Andrew Rabert Date: Thu, 3 Feb 2022 11:48:15 -0500 Subject: [PATCH] Replace nose with coverage --- requires/testing.txt | 5 ++--- setup.cfg | 16 +++++++++------- setup.py | 1 - tox.ini | 7 +++++-- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/requires/testing.txt b/requires/testing.txt index c732c17..edc9ca8 100644 --- a/requires/testing.txt +++ b/requires/testing.txt @@ -1,3 +1,2 @@ -coverage==4.5.4 -nose==1.3.7 -tox==3.13.2 +coverage==6.3 +tox==3.24.5 diff --git a/setup.cfg b/setup.cfg index 6121b0b..14d2366 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,12 +9,14 @@ warning-is-error = 1 [flake8] exclude = env,build -[nosetests] -cover-branches = 1 -cover-erase = 1 -cover-package = sprockets.http -cover-html = 1 -cover-html-dir = build/coverage - [upload_docs] upload_dir = build/sphinx/html + +[coverage:run] +branch = True +command_line = -m unittest discover tests --buffer --verbose + +[coverage:report] +show_missing = True +include = + sprockets/* diff --git a/setup.py b/setup.py index 4799a1d..25cb004 100755 --- a/setup.py +++ b/setup.py @@ -54,7 +54,6 @@ setuptools.setup( 'Topic :: Internet :: WWW/HTTP', 'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries :: Python Modules'], - test_suite='nose.collector', tests_require=read_requirements('testing.txt'), python_requires='>=3.5', zip_safe=True, diff --git a/tox.ini b/tox.ini index 5a1876d..eb3930c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py35,py36,py37,py38,py39,tornado,tornado50 +envlist = py37,py38,py39,tornado,tornado50 indexserver = default = https://pypi.python.org/simple toxworkdir = build/tox @@ -8,10 +8,13 @@ use_develop = True [testenv] commands = - nosetests -v + coverage run deps = + . -rrequires/testing.txt +extras = + sentry [testenv:tornado] commands =