Skip to content

Commit

Permalink
Added in the doc a useful example to help integrate pytest-cov.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Giffard authored and ionelmc committed Sep 3, 2018
1 parent 9035014 commit 8fd680e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/config.rst
Expand Up @@ -25,6 +25,12 @@ Note that this plugin controls some options and setting the option in the config
effect. These include specifying source to be measured (source option) and all data file handling
(data_file and parallel options).

If you wish to always add pytest-cov with pytest, you can use ``addopts`` under ``pytest`` or ``tool:pytest`` section.
For example: ::

[tool:pytest]
addopts = --cov=<project-name> --cov-report html

Caveats
=======

Expand Down

0 comments on commit 8fd680e

Please sign in to comment.