File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 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.
3232
3333    If you use the ``--cov-branch `` option then coverage's ``branch `` option will also get overridden.
3434
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 ``: ::
3739
3840    [tool:pytest] 
3941    addopts = --cov=<project-name> --cov-report html 
4042
43+ Or for ``pyproject.toml ``: ::
44+ 
45+     [tool.pytest.ini_options] 
46+     addopts = "--cov=<project-name> --cov-report html" 
47+ 
4148Caveats
4249======= 
4350
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments