Replace nose with coverage

This commit is contained in:
Andrew Rabert 2022-02-03 11:48:15 -05:00
parent 5b38192836
commit 8c5633eb6c
4 changed files with 16 additions and 13 deletions

View file

@ -1,3 +1,2 @@
coverage==4.5.4 coverage==6.3
nose==1.3.7 tox==3.24.5
tox==3.13.2

View file

@ -9,12 +9,14 @@ warning-is-error = 1
[flake8] [flake8]
exclude = env,build 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_docs]
upload_dir = build/sphinx/html upload_dir = build/sphinx/html
[coverage:run]
branch = True
command_line = -m unittest discover tests --buffer --verbose
[coverage:report]
show_missing = True
include =
sprockets/*

View file

@ -54,7 +54,6 @@ setuptools.setup(
'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries', 'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Python Modules'], 'Topic :: Software Development :: Libraries :: Python Modules'],
test_suite='nose.collector',
tests_require=read_requirements('testing.txt'), tests_require=read_requirements('testing.txt'),
python_requires='>=3.5', python_requires='>=3.5',
zip_safe=True, zip_safe=True,

View file

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py35,py36,py37,py38,py39,tornado,tornado50 envlist = py37,py38,py39,tornado,tornado50
indexserver = indexserver =
default = https://pypi.python.org/simple default = https://pypi.python.org/simple
toxworkdir = build/tox toxworkdir = build/tox
@ -8,10 +8,13 @@ use_develop = True
[testenv] [testenv]
commands = commands =
nosetests -v coverage run
deps = deps =
.
-rrequires/testing.txt -rrequires/testing.txt
extras =
sentry
[testenv:tornado] [testenv:tornado]
commands = commands =