Adding support for code coverage reposting in tests.

Change-Id: I6e379747d347fc6b3d2fef00a711ae13bb62dfc5
This commit is contained in:
adrian-turjak 2017-05-29 15:57:05 +12:00
parent 3a35e66a66
commit 3da809bfaa
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.sqlite3
*~
*.log
.coverage
python_adjutant.egg-info/*
dist/*
.tox/*

View File

@ -1,2 +1,3 @@
mock==1.2.0
flake8>=3.0.4
coverage>=4.4.1

View File

@ -1,5 +1,5 @@
[tox]
envlist = py27,pep8
envlist = py27,pep8,coverage
skipsdist = True
[testenv]
@ -12,6 +12,11 @@ setenv = VIRTUAL_ENV={envdir}
[testenv:pep8]
commands = flake8
[testenv:coverage]
commands =
coverage run --source='.' .tox/coverage/bin/adjutant-api test {posargs}
coverage report --include adjutant/* -m
[flake8]
ignore = D100,D101,D102,D103,D104,D105,D200,D203,D202,D204,D205,D208,D400,D401
show-source = true