Added coverage to testing
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
parent
2573e67272
commit
8381756693
|
@ -3,3 +3,4 @@ __pycache__/
|
||||||
backup_tool
|
backup_tool
|
||||||
*.egg-info/
|
*.egg-info/
|
||||||
.tox/
|
.tox/
|
||||||
|
.coverage
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -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",
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue