Coverage.py Vs pytest-cov

7.8k Views Asked by At

The documentation of coverage.py says that Many people choose to use the pytest-cov plugin, but for most purposes, it is unnecessary. So I would like to know what is the difference between these two? And which one is the most efficient ?

Thank you in advance

1

There are 1 best solutions below

3
On BEST ANSWER

pytest-cov uses coverage.py, so there's no different in efficiency, or basic behavior. pytest-cov auto-configures multiprocessing settings, and ferries data around if you use pytest-xdist.