Important behaviors and overrides in pytest-cov
masterpytest-cov overrides certain standard coverage.py settings. Users should be aware of the following interactions:
- Parallelism: pytest-cov overrides the
paralleloption of coverage. Setting these in.coveragercis generally ineffective unless running coverage without pytest-cov. - Source Filtering: Using
--cov=somethingoverrides thesourceoption in your coverage configuration file. - Branch Coverage: Using the
--cov-branchCLI flag overrides thebranchoption in your coverage configuration file.