Skip to content

Commit

Permalink
Coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
crusaderky committed Dec 12, 2024
1 parent 103f186 commit d11cc0f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ pixi shell -e dev
pixi run tests
```

- To display the coverage report:

```
pixi run open-coverage
```

- To build the docs locally:

```
Expand Down
2 changes: 1 addition & 1 deletion pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ numpy = "*"
tests = { cmd = "pytest -v" }
tests-ci = { cmd = "pytest -v -ra --cov --cov-report=xml --cov-report=term --durations=20" }
tests-vendor = { cmd = "pytest vendor_tests" }
coverage = { cmd = ["coverage", "html"], depends-on = ["tests-ci"] }
open-coverage = { cmd = ["open", "htmlcov/index.html"], depends-on = ["coverage"] }

[tool.pixi.feature.docs.dependencies]
sphinx = ">=7.0"
Expand Down

0 comments on commit d11cc0f

Please sign in to comment.