Skip to content

Commit a38801c

Browse files
Create README.md
1 parent fd37bda commit a38801c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Poetry Test Coverage Example
2+
3+
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/)
4+
5+
6+
## Requirements
7+
* Python (3.12)
8+
9+
## Installation
10+
11+
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).
12+
13+
## Usage
14+
15+
To run the tests, you can use the following command:
16+
17+
```bash
18+
poetry run pytest
19+
```
20+
21+
To run the tests with coverage, you can use the following command:
22+
23+
```bash
24+
$ poetry run coverage run -m pytest
25+
```
26+
27+
To generate the coverage report, you can use the following command:
28+
29+
```bash
30+
$ poetry run coverage report
31+
```
32+
33+
If you have any questions about the project please raise an Issue on GitHub.

0 commit comments

Comments
 (0)