pytest-cov
pytest-cov copied to clipboard
Coverage plugin for pytest.
# Summary If run using GitLab CI (.gitlab-ci.yml) the output is always 0%. When I run the package on my local machine it reports correctly, but when it rans in...
Hi there. I am currently having an interesting issue when using pytest-cov with the xdist plugin. I have created a `pytest_sessionfinish` hook that currently uses a worker to write some...
# Summary A [funny issue](https://github.com/nedbat/coveragepy/issues/915) in coverage's bugtracker has led me to consider what's the best way to deal with this problem: * Users running `coverage -m pytest --cov` Assuming...
``` platform linux2 -- Python 2.7.14, pytest-4.6.5, py-1.8.0, pluggy-0.12.0 plugins: xdist-1.29.0, cov-2.8.1, lazy-fixture-0.5.2, randomly-1.2.3, forked-1.0.2, instafail-0.4.1.post0 coverage==5.0.2 ``` ```python def _smoke_test_in_process(): assert str(3) == "3" def test_ham(): import billiard as...
``` platform win32 -- Python 2.7.16, pytest-4.4.1, py-1.8.0, pluggy-0.11.0 -- c:\workspace\projects\pytest-dummy\.venv\scripts\python.exe cachedir: .pytest_cache rootdir: C:\workspace\projects\pytest-dummy plugins: cov-2.7.1 ``` This issue appears when there are some modules with the same name...
I've been working in the pytest-cov code recently to get it to support coverage.py 5.0 (pull request: #319), and also reviewing #330. The problems that have come up have brought...
Coveragepy 5 now supports coverage provenance in a ["who-tests-what" feature](https://nedbatchelder.com/blog/201612/who_tests_what.html). Currently this information is reported on but there's currently no easy way to provide assertions on the information I'd like...
When building pytest-cov package for openSUSE/Tumbleweed, the test ``test_dist_subprocess_not_collocated`` fails with very confusing output on stdout: ``` [ 229s] =================================== FAILURES =================================== [ 229s] _____________________ test_dist_subprocess_not_collocated ______________________ [ 229s] /home/abuild/rpmbuild/BUILD/pytest-cov-2.8.1/tests/test_pytest_cov.py:923:...
I'm not sure what changed, but the last time I ran `tox`, the coverage report is VASTLY different from the normal `pytest` report. They should be identical commands, but for...
At least I could not find it here: http://pytest-cov.readthedocs.io/en/latest/reporting.html I found it accidentally. It would be nice if it was included in the docs.