diff --git a/docs/changelog.rst b/docs/changelog.rst index 5e572518..2e5dea4a 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -441,12 +441,16 @@ Core Library * `#524 ` : Python 3.6+ emitted a :class:`DeprecationWarning` for :func:`mitogen.utils.run_with_router`. +* `#529 ` : Code coverage of the + test suite was not measured across all Python versions. + Thanks! ~~~~~~~ Mitogen would not be possible without the support of users. A huge thanks for bug reports, testing, features and fixes in this release contributed by +`Alex Willmer `_, `Andreas Krüger `_, `Anton Stroganov `_, `Berend De Schouwer `_, diff --git a/tox.ini b/tox.ini index 80f835ee..8a4ef364 100644 --- a/tox.ini +++ b/tox.ini @@ -1,10 +1,12 @@ [tox] envlist = + init, py26, py27, py35, py36, py37, + report, [testenv] usedevelop = True @@ -16,6 +18,24 @@ commands = {posargs:bash run_tests} whitelist_externals = bash +setenv = + NOCOVERAGE_ERASE = 1 + NOCOVERAGE_REPORT = 1 + +[testenv:init] +commands = + coverage erase +deps = + coverage + +[testenv:report] +commands = + coverage html + echo "coverage report is at file://{toxinidir}/htmlcov/index.html" +deps = + coverage +whitelist_externals = + echo [testenv:docs] basepython = python