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 authored and radoering committed Oct 2, 2024
1 parent 9c3ffd9 commit 4e4b791
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 4e4b791

Please sign in to comment.