You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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