Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@
"author_email",
"repo_name",
"package_name",
"module_name"
"module_name",
"test_coverage_threshold"
],
"vscode-yaml-sort.noCompatMode": true,
"vscode-yaml-sort.sortOnSave": 2,
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ toml-sort:
${PIPRUN} toml-sort pyproject.toml

tests:
${PIPRUN} python -m pytest --cov-fail-under=$(or $(SS_TEST_COVERAGE_MIN),100) .
${PIPRUN} python -m pytest .

freeze:
@${PIPRUN} pip freeze --exclude-editable
Expand Down
2 changes: 1 addition & 1 deletion Makefile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ toml-sort:
${PIPRUN} toml-sort pyproject.toml

tests:
${PIPRUN} python -m pytest --cov-fail-under=$(or $(SS_TEST_COVERAGE_MIN),100) .
${PIPRUN} python -m pytest .

freeze:
@${PIPRUN} pip freeze --exclude-editable
Expand Down
4 changes: 4 additions & 0 deletions copier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ module_name:
default: '{{ package_name|lower|replace("-", "_") }}'
help: 'Module name:'
type: str
test_coverage_threshold:
default: 100
help: 'Threshold for test coverage:'
type: int
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ warn_return_any = true
warn_unused_ignores = true

[tool.pytest.ini_options]
addopts = "-l -s --durations=0 --cov=src --cov-report term --cov-report xml"
addopts = "-l -s --durations=0 --cov=src --cov-report term --cov-report xml --cov-fail-under=100"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ warn_return_any = true
warn_unused_ignores = true

[tool.pytest.ini_options]
addopts = "-l -s --durations=0 --cov=src --cov-report term --cov-report xml"
addopts = "-l -s --durations=0 --cov=src --cov-report term --cov-report xml --cov-fail-under={{ test_coverage_threshold }}"
log_cli = true
log_cli_level = "info"
log_date_format = "%Y-%m-%d %H:%M:%S"
Expand Down