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 ''
|
||||
|
||||
[nosetests]
|
||||
with-coverage = true
|
||||
cover-package = wsme
|
||||
#with-coverage = true
|
||||
#cover-package = wsme
|
||||
|
24
tox.ini
24
tox.ini
@ -1,6 +1,6 @@
|
||||
# content of: tox.ini , put in same dir as setup.py
|
||||
[tox]
|
||||
envlist = py27,py32,pypy,py25simplejson
|
||||
envlist = clean,py27,py32,pypy,py25simplejson,coverage
|
||||
|
||||
[common]
|
||||
testtools =
|
||||
@ -15,7 +15,10 @@ deps =
|
||||
coverage
|
||||
transaction
|
||||
|
||||
commands=nosetests --verbose []
|
||||
#commands=nosetests --verbose []
|
||||
commands=
|
||||
{envbindir}/coverage run -p {envbindir}/nosetests -w ./wsme/tests --verbose {posargs}
|
||||
|
||||
downloadcache=.tox/cache
|
||||
|
||||
[testenv:py25simplejson]
|
||||
@ -27,3 +30,20 @@ deps=
|
||||
simplejson
|
||||
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