Skip to content

Commit

Permalink
Fail make test on coverage below 90% (#2682)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfx authored Sep 19, 2024
1 parent 7b0e64b commit 4ca6dc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ dependencies = [
path = ".venv"

[tool.hatch.envs.default.scripts]
test = "pytest -n 4 --cov src --cov-report=xml --timeout 30 tests/unit --durations 20"
coverage = "pytest -n auto --cov src tests/unit --timeout 30 --cov-report=html --durations 20"
test = "pytest -n 4 --cov src --cov-report=xml --timeout 30 tests/unit --durations 20 --cov-fail-under=90"
coverage = "pytest -n auto --cov src tests/unit --timeout 30 --cov-report=html --durations 20 --cov-fail-under=90"
integration = "pytest -n 10 --cov src tests/integration --durations 20"
fmt = ["black . --extend-exclude 'tests/unit/source_code/samples/'",
"ruff check . --fix",
Expand Down

0 comments on commit 4ca6dc4

Please sign in to comment.