Skip to content

Pytest-with-Eric/pytest-poetry-test-coverage-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poetry Test Coverage Example

This repo contains the sample code for the article - How To Measure And Improve Test Coverage With Poetry And Pytest

Requirements

  • Python (3.12)

Installation

To install the project, you need to have Poetry installed. If you don't have it installed, you can install it by following the instructions here.

Usage

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

poetry run pytest

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

$ poetry run coverage run -m pytest

To generate the coverage report, you can use the following command:

$ poetry run coverage report

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

Releases

No releases published

Packages

No packages published

Languages