Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5634e86 · Sep 26, 2024

History

3 Commits
Sep 24, 2024
Sep 24, 2024
Sep 23, 2024
Sep 24, 2024
Sep 24, 2024
Sep 23, 2024
Sep 26, 2024
Sep 23, 2024

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.