Skip to content

Commit

Permalink
fix: adding coverage only to non-testing files but allowing pytest to…
Browse files Browse the repository at this point in the history
… run all pytests from src and examples folder
  • Loading branch information
Armando Banuelos authored and Armando Banuelos committed Mar 6, 2024
1 parent 4d80f0b commit e4e4eae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
branch = True
omit =
src/scenic/simulators/webots/WBT*.py
examples/conftest.py
tests/*
*/__init__.py

[report]
# Regexes for lines to exclude from consideration
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@ extend_skip_glob = [

[tool.pytest.ini_options]
norecursedirs = ["examples"]
addopts = "--cov=tests --cov-fail-under=80"
addopts = "--cov . --cov-fail-under=80"

0 comments on commit e4e4eae

Please sign in to comment.