Skip to content

Commit

Permalink
Merge pull request #277 from twisted/parallel-coverage
Browse files Browse the repository at this point in the history
support `coverage -p`
  • Loading branch information
twm committed Dec 29, 2021
2 parents 7d6e9b7 + f4a53d1 commit 3d33835
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tox.ini
Expand Up @@ -3,7 +3,7 @@ envlist =
{py36,py37}-twisted_lowest,
{pypy3,py36,py37,py38,py39}-twisted_latest,
{pypy3,py36,py37,py38,py39}-twisted_trunk,
towncrier, twine, check-manifest, flake8, docs
twine, check-manifest, flake8, docs, coverage-report
isolated_build = true

[testenv]
Expand All @@ -22,9 +22,8 @@ passenv = TERM # ensure colors
commands =
pip list
python -Wall \
{envbindir}/coverage run \
{envbindir}/coverage run -p \
{envbindir}/trial {posargs:treq}
coverage report -m

[testenv:flake8]
skip_install = True
Expand Down Expand Up @@ -57,6 +56,12 @@ changedir = docs
commands =
sphinx-build -b html . html

[testenv:coverage-report]
depends = pypy3,py36,py37,py38,py39
commands =
coverage combine
coverage report

[flake8]
# This is a minimal Black-compatible config.
# See https://black.readthedocs.io/en/stable/compatible_configs.html#flake8
Expand Down

0 comments on commit 3d33835

Please sign in to comment.