Pycharm/IntelliJ shows 0% coverage for pytest even though coverage was generated
I think the problem lies in you use pytest-cov
, so Pycharm cannot parse the result which is shown in text like 53%
generated by pytest-cov
;
So Changes option in pytest.ini
to addopts = -s -v
when you want to use Pycharm built in coverage tools.