File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,11 @@ Caveats
51
51
A unfortunate consequence of coverage.py's history is that ``.coveragerc `` is a magic name: it's the default file but it also
52
52
means "try to also lookup coverage configuration in ``tox.ini `` or ``setup.cfg ``".
53
53
54
- In practical terms this means that if you have your coverage configuration in ``tox.ini `` or ``setup.cfg `` it is paramount
55
- that you also use ``--cov-config=tox.ini `` or `` --cov-config=setup.cfg `` .
54
+ In practical terms this means that if you have multiple configuration files around ( ``tox.ini ``, `` pyproject.toml `` or ``setup.cfg ``) you
55
+ might need to use ``--cov-config `` to make coverage use the correct configuration file .
56
56
57
- You might not be affected but it's unlikely that you won't ever use ``chdir `` in a test.
57
+ Also, if you change the working directory and also use subprocesses in a test you might also need to use ``--cov-config `` to make pytest-cov
58
+ will use the expected configuration file in the subprocess.
58
59
59
60
Reference
60
61
=========
You can’t perform that action at this time.
0 commit comments