Use coverage instead of z3c.coverage.

svn path=/plone.app.discussion/trunk/; revision=40003
This commit is contained in:
Timo Stollenwerk 2010-09-18 16:59:58 +00:00
parent 14c0a3a4d1
commit bf7687364b

View File

@ -8,7 +8,7 @@ package-directory = plone/app/discussion
parts += parts +=
omelette omelette
test test
coverage-test coverage
coverage-report coverage-report
jscoverage-build jscoverage-build
jscoverage jscoverage
@ -32,16 +32,22 @@ recipe = collective.xmltestreport
eggs = ${buildout:package-name} eggs = ${buildout:package-name}
defaults = ['--auto-color', '--auto-progress'] defaults = ['--auto-color', '--auto-progress']
[coverage-test] [coverage]
recipe = zc.recipe.testrunner recipe = zc.recipe.egg
eggs = ${buildout:package-name} eggs = coverage
defaults = ['-s', 'plone.app.discussion', '--coverage', '../../coverage', '-v', '--auto-progress'] initialization =
sys.argv = sys.argv[:] + ['run', 'bin/test', '-k', '-q', '--xml']
[coverage-report] [coverage-report]
recipe = zc.recipe.egg recipe = zc.recipe.egg
eggs = z3c.coverage eggs = coverage
scripts = coveragereport scripts = coverage=report
arguments = ('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]
[jscoverage-build] [jscoverage-build]
recipe = zc.recipe.cmmi recipe = zc.recipe.cmmi