Added coverage to testing
continuous-integration/drone the build failed Details

pull/15/head
Jef Roosens 2021-04-24 23:17:03 +02:00
parent 2573e67272
commit 8381756693
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ __pycache__/
backup_tool
*.egg-info/
.tox/
.coverage

View File

@ -11,6 +11,10 @@ setup(
"ci": [
"tox==3.21.1",
],
"test": {
"pytest==6.2.3",
"pytest-cov==2.11.1",
},
"lint": [
"black==20.8b1",
"flake8==3.8.4",

View File

@ -2,13 +2,14 @@
envlist = py36,py37,py38,py39,lint
[testenv]
deps = pytest
deps = .[test]
commands =
pytest
pytest --cov=app --cov-fail-under=90 tests/
[testenv:lint]
basepython = python3.6
deps = .[lint]
commands = black --check setup.py app
flake8 setup.py app
commands =
black --check setup.py app
flake8 setup.py app