From 8fd680e3812a1cd85d40117e9d5e9119434fd7d2 Mon Sep 17 00:00:00 2001 From: Samuel Giffard Date: Thu, 15 Mar 2018 18:19:44 +0100 Subject: [PATCH] Added in the doc a useful example to help integrate pytest-cov. --- docs/config.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/config.rst b/docs/config.rst index ccb0d5c9..1f2d8a33 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -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= --cov-report html + Caveats =======