setup pytest-cov

This commit is contained in:
Renaud Boyer 2020-12-05 15:00:56 +01:00
parent 5fc1606fb5
commit db0114bf16
2 changed files with 12 additions and 1 deletions

4
.gitignore vendored
View File

@ -12,4 +12,6 @@ static/upload
adhoc_*
adhoc.py
venv/
.venv
.venv
.coverage
htmlcov

View File

@ -80,7 +80,16 @@ py3-validate-email = "^0.2.10"
pytest = "^6.1.0"
black = "^20.8b1"
pre-commit = "^2.7.1"
pytest-cov = "^2.10.1"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.pytest.ini_options]
addopts = """
--cov=.
--cov-report=term:skip-covered
--cov-report=html:htmlcov
--cov-fail-under=60
"""