Tweak coverage config

This commit is contained in:
Gabriel Augendre 2021-11-20 15:13:26 +01:00
parent 19a4803758
commit b1f1950c98
2 changed files with 9 additions and 1 deletions

View file

@ -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"

View file

@ -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