Skip to content

Commit

Permalink
Merge pull request #6 from AlexanderFabisch/test/coverage
Browse files Browse the repository at this point in the history
Measure test coverage
  • Loading branch information
clemense authored Dec 9, 2024
2 parents d160861 + 78f5495 commit c806125
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[paths]
source =
src
*/site-packages

[run]
branch = true
parallel = true
source =
src/scene_synthesizer
test

[report]
show_missing = true
precision = 1

2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

From the root directory of the repo, run the following:
```
python -m pytest -n auto tests/
python -m pytest
```

## Generate Documentation
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@ import_heading_localfolder = "Local Folder"
line_length = 100

[tool.pytest.ini_options]
# for more details on configuration, see
# https://github.com/pytest-dev/pytest-cov/tree/4732d50f2322a6e0ea480a6c400fbc96f78283bb/examples/src-layout
norecursedirs = [".git", ".venv", "deprecated", "dist"]
python_files = ["*_test.py"]
testpaths = ["tests"]
addopts = "-n auto --cov-config=.coveragerc --cov=scene_synthesizer --cov-report html"

0 comments on commit c806125

Please sign in to comment.