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 backup_tool
*.egg-info/ *.egg-info/
.tox/ .tox/
.coverage

View File

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

View File

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