pytest-cov icon indicating copy to clipboard operation
pytest-cov copied to clipboard

Running with HTML coverage prevents stdout from printing with -s

Open nmz787 opened this issue 5 years ago • 1 comments

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 used actual: my prints are not shown

Reproducer

see above

Versions

Output of relevant packages pip list, python --version, pytest --version etc.

Make sure you include complete output of tox if you use it (it will show versions of various things).

$ python --version Python 3.6.8

$ pytest --version pytest 6.0.1

$ pip list |grep cov coverage 5.2.1 pytest-cov 2.10.0

Config

Include your tox.ini, pytest.ini, .coveragerc, setup.cfg or any relevant configuration.

Code

private code

nmz787 avatar Aug 25 '20 17:08 nmz787

I can't reproduce. There's likely little that can be done without having a reproducer from your side.

The-Compiler avatar Aug 25 '20 17:08 The-Compiler