Fix coverage.

svn path=/plone.app.discussion/trunk/; revision=40080
This commit is contained in:
Timo Stollenwerk 2010-09-20 09:58:40 +00:00
parent 4b3473f74b
commit 9f605ab53b

View File

@ -35,19 +35,19 @@ defaults = ['--auto-color', '--auto-progress']
[coverage]
recipe = zc.recipe.egg
eggs = coverage
scripts = coverage=report
initialization =
sys.argv = sys.argv[:] + ['run', 'bin/test', '-k', '-q', '--xml']
sys.argv = sys.argv[:] + ['xml',
'--include=plone/app/discussion/*.py',
'--omit=plone/app/discussion/tests/*']
[coverage-report]
recipe = zc.recipe.egg
eggs = coverage
scripts = coverage=report
initialization =
eggs = '${buildout:eggs-directory}'
bin = '${buildout:directory}/bin'
tests = '${buildout:directory}/${buildout:package-directory}/tests'
exclude = '--omit=' + ','.join([eggs, sys.prefix, bin, tests])
sys.argv = sys.argv[:] + ['xml', '-i', exclude]
sys.argv = sys.argv[:] + ['report',
'--include=plone/app/discussion/*.py',
'--omit=plone/app/discussion/tests/*']
[jscoverage-build]
recipe = zc.recipe.cmmi
@ -143,4 +143,3 @@ input = inline:
fi
output = ${buildout:directory}/bin/zptlint-test
mode = 755