Skip to content

Commit d11cc0f

Browse files
committed
Coverage report
1 parent 103f186 commit d11cc0f

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/contributing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ pixi shell -e dev
4343
pixi run tests
4444
```
4545

46+
- To display the coverage report:
47+
48+
```
49+
pixi run open-coverage
50+
```
51+
4652
- To build the docs locally:
4753

4854
```

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ numpy = "*"
102102
tests = { cmd = "pytest -v" }
103103
tests-ci = { cmd = "pytest -v -ra --cov --cov-report=xml --cov-report=term --durations=20" }
104104
tests-vendor = { cmd = "pytest vendor_tests" }
105+
coverage = { cmd = ["coverage", "html"], depends-on = ["tests-ci"] }
106+
open-coverage = { cmd = ["open", "htmlcov/index.html"], depends-on = ["coverage"] }
105107

106108
[tool.pixi.feature.docs.dependencies]
107109
sphinx = ">=7.0"

0 commit comments

Comments
 (0)