forked from Github-Mirrors/canaille
Code coverage
This commit is contained in:
parent
ff8bd12aaf
commit
eab7891751
4 changed files with 30 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -7,3 +7,6 @@ env
|
|||
.python_history
|
||||
config.toml
|
||||
.tox
|
||||
.coverage
|
||||
.coverage.*
|
||||
htmlcov
|
||||
|
|
|
@ -27,3 +27,8 @@ python38:
|
|||
image: python:3.8
|
||||
stage: test
|
||||
script: tox -e py38
|
||||
|
||||
coverage:
|
||||
image: python:3.8
|
||||
stage: test
|
||||
script: tox -e coverage
|
||||
|
|
|
@ -3,6 +3,4 @@ flask
|
|||
flask-babel
|
||||
flask-wtf
|
||||
python-ldap
|
||||
pytest
|
||||
toml
|
||||
pdbpp
|
||||
|
|
23
setup.cfg
23
setup.cfg
|
@ -3,9 +3,30 @@ envlist =
|
|||
py36
|
||||
py37
|
||||
py38
|
||||
coverage
|
||||
skipsdist=True
|
||||
|
||||
[testenv]
|
||||
install_command = pip install {packages}
|
||||
commands = {envbindir}/pytest --showlocals --full-trace {posargs}
|
||||
deps = --requirement requirements.txt
|
||||
deps =
|
||||
pytest
|
||||
pdbpp
|
||||
--requirement requirements.txt
|
||||
|
||||
[testenv:coverage]
|
||||
skip_install = true
|
||||
deps =
|
||||
pdbpp
|
||||
pytest
|
||||
pytest-coverage
|
||||
--requirement requirements.txt
|
||||
|
||||
commands =
|
||||
{envbindir}/pytest --cov {posargs}
|
||||
coverage html
|
||||
|
||||
[coverage:run]
|
||||
source =
|
||||
web
|
||||
tests
|
||||
|
|
Loading…
Reference in a new issue