-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd37bda
commit a38801c
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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. |