tox now combine code coverage results
This commit is contained in:
parent
5239a8fc93
commit
766e5057ac
@ -6,5 +6,5 @@ tag_date = true
|
|||||||
release = egg_info -RDb ''
|
release = egg_info -RDb ''
|
||||||
|
|
||||||
[nosetests]
|
[nosetests]
|
||||||
with-coverage = true
|
#with-coverage = true
|
||||||
cover-package = wsme
|
#cover-package = wsme
|
||||||
|
24
tox.ini
24
tox.ini
@ -1,6 +1,6 @@
|
|||||||
# content of: tox.ini , put in same dir as setup.py
|
# content of: tox.ini , put in same dir as setup.py
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py27,py32,pypy,py25simplejson
|
envlist = clean,py27,py32,pypy,py25simplejson,coverage
|
||||||
|
|
||||||
[common]
|
[common]
|
||||||
testtools =
|
testtools =
|
||||||
@ -15,7 +15,10 @@ deps =
|
|||||||
coverage
|
coverage
|
||||||
transaction
|
transaction
|
||||||
|
|
||||||
commands=nosetests --verbose []
|
#commands=nosetests --verbose []
|
||||||
|
commands=
|
||||||
|
{envbindir}/coverage run -p {envbindir}/nosetests -w ./wsme/tests --verbose {posargs}
|
||||||
|
|
||||||
downloadcache=.tox/cache
|
downloadcache=.tox/cache
|
||||||
|
|
||||||
[testenv:py25simplejson]
|
[testenv:py25simplejson]
|
||||||
@ -27,3 +30,20 @@ deps=
|
|||||||
simplejson
|
simplejson
|
||||||
transaction<=1.1.1
|
transaction<=1.1.1
|
||||||
|
|
||||||
|
[testenv:clean]
|
||||||
|
basepython=python
|
||||||
|
deps=
|
||||||
|
coverage
|
||||||
|
commands=
|
||||||
|
{envbindir}/coverage erase
|
||||||
|
rm -f .coverage*
|
||||||
|
|
||||||
|
[testenv:coverage]
|
||||||
|
basepython=python
|
||||||
|
deps=
|
||||||
|
coverage
|
||||||
|
commands=
|
||||||
|
{envbindir}/coverage combine
|
||||||
|
{envbindir}/coverage xml wsme/*.py wsme/protocols/*.py
|
||||||
|
{envbindir}/coverage report wsme/*.py wsme/protocols/*.py
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user