https://github.com/pytest-with-eric/pytest-poetry-test-coverage-example
How To Measure And Improve Test Coverage With Poetry And Pytest
https://github.com/pytest-with-eric/pytest-poetry-test-coverage-example
coverage-report poetry-test-coverage pytest-cov python-coverage
Last synced: about 1 month ago
JSON representation
How To Measure And Improve Test Coverage With Poetry And Pytest
- Host: GitHub
- URL: https://github.com/pytest-with-eric/pytest-poetry-test-coverage-example
- Owner: Pytest-with-Eric
- Created: 2024-09-16T07:36:49.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-09-20T06:52:00.000Z (8 months ago)
- Last Synced: 2025-01-29T12:29:36.415Z (3 months ago)
- Topics: coverage-report, poetry-test-coverage, pytest-cov, python-coverage
- Language: Python
- Homepage: https://pytest-with-eric.com/coverage/poetry-test-coverage/
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Poetry Test Coverage Example
This repo contains the sample code for the article - [How To Measure And Improve Test Coverage With Poetry And Pytest](https://pytest-with-eric.com/coverage/poetry-test-coverage/)
## 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](https://python-poetry.org/docs/#installation).
## Usage
To run the tests, you can use the following command:
```bash
poetry run pytest
```To run the tests with coverage, you can use the following command:
```bash
$ poetry run coverage run -m pytest
```To generate the coverage report, you can use the following command:
```bash
$ poetry run coverage report
```If you have any questions about the project please raise an Issue on GitHub.