pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
# Summary `python -m pytest -s --cov-report html --cov=mynamespace.mypackage tests` fails to show print statements on stdout ## Expected vs actual result expected: to see my prints, because -s was...
Hello and thank you for your work on this project. A possible incompatibility between `pytest-cov` and `coverage` versions greater than 5.0.0 is causing tests to fail in my company's projects....
Backtrace: ``` self = , file_path = '/home/user/project-dir', check_read_perm = True def get_object_from_normpath(self, file_path, check_read_perm=True): """Search for the specified filesystem object within the fake filesystem. Args: file_path: Specifies target FakeFile...
_Originally posted by @Hikari9 in https://github.com/ionelmc/cookiecutter-pylibrary/issues/13#issuecomment-472733094_ ## Summary Coverage is not collected in `subprocess.Popen` when timeout is raised by `communicate(timeout=...)`. This only occurs in tests that are run with `python...
As evident by https://codecov.io/gh/celery/celery/src/master/celery/utils/threads.py#L58 it seems that the code is loaded before coverage measurement starts which skews our score. The coverage.py FAQ says: > Q: Why do the bodies of...
I'd like to be able to programmatically disable coverage tests based on some runtime condition. In particular, on Setuptools, when running tests against PyPy, enabling coverage is prohibitively expensive (~3x...
# Summary I have a package that includes a pytest plugin (and, to make things more complicated, the test suite for the package uses that plugin). I want to run...
Maybe, lock the coverage data file with something like https://pypi.org/project/filelock/ before reading/writing it? When using pytest-cov on Travis-CI with --cov-append, several jobs from the job matrix might be using the...
When running tests in parallel for a program which uses mpi4py, often an INTERNALERROR is signalled. The error arises due to a corruption of the .coverage file. This seems to...
Hi guys, I'm not sure if this is a pytest-cov, coverage, or Travis CI issue, but recently my Travis builds have started producing inconsistent coverage reports. For example, with this...