Tweak coverage config
This commit is contained in:
parent
19a4803758
commit
b1f1950c98
2 changed files with 9 additions and 1 deletions
|
@ -65,6 +65,10 @@ commands =
|
||||||
poetry run inv test
|
poetry run inv test
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
omit = ["tasks.py"]
|
||||||
|
branch = true
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core>=1.0.0"]
|
requires = ["poetry-core>=1.0.0"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
6
tasks.py
6
tasks.py
|
@ -14,7 +14,11 @@ def test(ctx):
|
||||||
@task
|
@task
|
||||||
def test_cov(ctx):
|
def test_cov(ctx):
|
||||||
with ctx.cd(BASE_DIR):
|
with ctx.cd(BASE_DIR):
|
||||||
ctx.run(f"pytest --cov=.", pty=True, echo=True)
|
ctx.run(
|
||||||
|
f"pytest --cov=. --cov-report term-missing:skip-covered",
|
||||||
|
pty=True,
|
||||||
|
echo=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@task
|
@task
|
||||||
|
|
Loading…
Reference in a new issue