Skip to content

Commit

Permalink
Add info about getting test coverage in contribution guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Sep 30, 2024
1 parent 22901fa commit 850371a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ poetry install
poetry run pytest
```

{{% note %}}
If you want to see the coverage stats after the tests are complete, use:

```bash
poetry run pytest --cov=src/poetry --cov-report term
```
{{% /note %}}

When you contribute to Poetry, automated tools will be run to make sure your code is suitable to be merged. Besides
pytest, you will need to make sure your code typechecks properly using [mypy](http://mypy-lang.org/):

Expand Down

0 comments on commit 850371a

Please sign in to comment.