Skip to content

Add option to prevent coverage erase #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
schlamar opened this issue Apr 24, 2014 · 4 comments
Closed

Add option to prevent coverage erase #5

schlamar opened this issue Apr 24, 2014 · 4 comments

Comments

@schlamar
Copy link
Contributor

This is useful if you have multiple test runs, e.g. with tox, and want to combine the results at the end of all runs.

@aldanor
Copy link

aldanor commented Aug 25, 2014

Then it would also make sense to allow specifying suffix of the coverage file, e.g. .coverage.py27.

@schlamar
Copy link
Contributor Author

See #16 how you can specify data files for different tox environments. I guess you might even do not need an option to prevent erasing. If you result to .coverage.<toxenv> and then run coverage combine it should work. I'll check that when I have some time.

@aldanor
Copy link

aldanor commented Aug 25, 2014

Didn't know about COVERAGE_FILE, will check out if it works, thanks.

@schlamar
Copy link
Contributor Author

Will work as expected in 2.0 release, see for details: http://lists.idyll.org/pipermail/testing-in-python/2014-November/006224.html

cclauss added a commit to cclauss/pytest-cov that referenced this issue Feb 19, 2023
# This is the 1st commit message:

Add Python 3.11 and PyPy 3.9 to the testing
# The commit message pytest-dev#2 will be skipped:

# tox.ini: Add py311 and pypy39

# The commit message pytest-dev#3 will be skipped:

# pytest72

# The commit message pytest-dev#4 will be skipped:

# xdist302
#
# Co-authored-by: Mason Lin <[email protected]>

# The commit message pytest-dev#5 will be skipped:

# coverage65
#
# Co-authored-by: Mason Lin <[email protected]>

# The commit message pytest-dev#6 will be skipped:

# Drop py36 and upgrade to pytest-xdist==3.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants