Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/tox.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To prevent this problem you need to use ``--cov-append``. It's still recommended
have consistent output. A ``tox.ini`` like this should be enough for sequential runs::

[tox]
envlist = clean,py27,py36,...
envlist = clean,py39,py312,...

[testenv]
commands = pytest --cov --cov-append --cov-report=term-missing ...
Expand All @@ -46,16 +46,16 @@ have consistent output. A ``tox.ini`` like this should be enough for sequential
For parallel runs we need to set some dependencies and have an extra report env like so::

[tox]
envlist = clean,py27,py36,report
envlist = clean,py39,py312,report

[testenv]
commands = pytest --cov --cov-append --cov-report=term-missing
deps =
pytest
pytest-cov
depends =
{py27,py36}: clean
report: py27,py36
{py39,py312}: clean
report: py39,py312

[testenv:report]
deps = coverage
Expand All @@ -70,4 +70,4 @@ For parallel runs we need to set some dependencies and have an extra report env
commands = coverage erase

Depending on your project layout you might need extra configuration, see the working examples at
https://github.com/pytest-dev/pytest-cov/tree/master/examples for two common layouts.
https://github.com/pytest-dev/pytest-cov/tree/main/examples for two common layouts.