File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,19 @@ For full details refer to the `coverage config file`_ documentation.
32
32
33
33
If you use the ``--cov-branch `` option then coverage's ``branch `` option will also get overridden.
34
34
35
- If you wish to always add pytest-cov with pytest, you can use ``addopts `` under ``pytest `` or ``tool:pytest `` section.
36
- For example: ::
35
+ If you wish to always add pytest-cov with pytest, you can use ``addopts `` under the ``pytest `` or ``tool:pytest `` section of
36
+ your ``setup.cfg ``, or the ``tool.pytest.ini_options `` section of your ``pyproject.toml `` file.
37
+
38
+ For example, in ``setup.cfg ``: ::
37
39
38
40
[tool:pytest]
39
41
addopts = --cov=<project-name> --cov-report html
40
42
43
+ Or for ``pyproject.toml ``: ::
44
+
45
+ [tool.pytest.ini_options]
46
+ addopts = "--cov=<project-name> --cov-report html"
47
+
41
48
Caveats
42
49
=======
43
50
You can’t perform that action at this time.
0 commit comments