Update tox to generate docs & code coverage output
Change-Id: If4991deb68889d47e9530f56b008d005495b070c
This commit is contained in:
parent
95f4cf660c
commit
92a9540a21
|
@ -44,3 +44,4 @@ Changes in Version 1.0.4
|
||||||
* Added new API
|
* Added new API
|
||||||
- Get API Version
|
- Get API Version
|
||||||
* Fixed PEP8 violations
|
* Fixed PEP8 violations
|
||||||
|
* Added tox environments to run tests with code coverage and to generate the documentation
|
||||||
|
|
|
@ -4,3 +4,5 @@ flask
|
||||||
Werkzeug
|
Werkzeug
|
||||||
|
|
||||||
flake8 # Used by tox
|
flake8 # Used by tox
|
||||||
|
coverage
|
||||||
|
sphinx
|
||||||
|
|
11
tox.ini
11
tox.ini
|
@ -1,7 +1,7 @@
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipdist = True
|
skipdist = True
|
||||||
envlist = py27, pep8
|
envlist = py27,pep8,cover
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
|
@ -13,6 +13,15 @@ deps = -r{toxinidir}/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
nosetests --tc-file={toxinidir}/test/config.ini -v
|
nosetests --tc-file={toxinidir}/test/config.ini -v
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
deps = -r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
commands =
|
||||||
|
nosetests --with-coverage --cover-package=hplefthandclient --cover-html --tc-file={toxinidir}/test/config.ini -v
|
||||||
|
|
||||||
|
[testenv:docs]
|
||||||
|
commands = sphinx-build -b html docs docs/html
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8 {posargs} hplefthandclient test
|
flake8 {posargs} hplefthandclient test
|
||||||
|
|
Loading…
Reference in New Issue