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
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,10 @@ jobs:
- name: Test
# Network I/O is isolated in the *_utils modules and mocked there, so
# the suite needs neither a live network nor any external binary.
run: pytest --tb=short -q
#
# --cov-fail-under lives here rather than in pyproject addopts: in
# addopts it also applies to targeted runs such as
# `pytest tests/test_x.py::TestY -v`, which measure the whole package
# while executing one class and so fail the gate at ~3% coverage even
# when every selected test passes.
run: pytest --tb=short -q --cov-fail-under=80
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ select = ["E4", "E7", "E9", "F"]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
addopts = "--cov=subdomainenum --cov-report=term-missing --cov-fail-under=80"
addopts = "--cov=subdomainenum --cov-report=term-missing"