pytest-cov
is a pytest plugin which produces coverage reports the same way as coverage does, but with better support for pytest
and integrated support for coverage in subprocesses. It also works with pytest-xdist. All configuration options provided by coverage
are supported.
Reference: