Skip to content

Pytest-with-Eric/python-coverage-omit-subfolder-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Coverage Omit Subfolder in Source Example

Description

This project is an example of how to omit a subfolder in the source code from the coverage report, for the article 3 Simple Ways To Omit Subfolders From Python Coverage Reports.

The tests for the module are written using the pytest framework.

Usage

Create a virtual environment and install the dependencies:

$ python3 -m venv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

To run the tests, you can use the following command:

$ pytest

If you have any questions about the project please raise an Issue on GitHub.