Use coverage instead of z3c.coverage.
svn path=/plone.app.discussion/trunk/; revision=40003
This commit is contained in:
parent
14c0a3a4d1
commit
bf7687364b
@ -8,7 +8,7 @@ package-directory = plone/app/discussion
|
||||
parts +=
|
||||
omelette
|
||||
test
|
||||
coverage-test
|
||||
coverage
|
||||
coverage-report
|
||||
jscoverage-build
|
||||
jscoverage
|
||||
@ -32,16 +32,22 @@ recipe = collective.xmltestreport
|
||||
eggs = ${buildout:package-name}
|
||||
defaults = ['--auto-color', '--auto-progress']
|
||||
|
||||
[coverage-test]
|
||||
recipe = zc.recipe.testrunner
|
||||
eggs = ${buildout:package-name}
|
||||
defaults = ['-s', 'plone.app.discussion', '--coverage', '../../coverage', '-v', '--auto-progress']
|
||||
[coverage]
|
||||
recipe = zc.recipe.egg
|
||||
eggs = coverage
|
||||
initialization =
|
||||
sys.argv = sys.argv[:] + ['run', 'bin/test', '-k', '-q', '--xml']
|
||||
|
||||
[coverage-report]
|
||||
recipe = zc.recipe.egg
|
||||
eggs = z3c.coverage
|
||||
scripts = coveragereport
|
||||
arguments = ('coverage', 'report')
|
||||
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]
|
||||
|
||||
[jscoverage-build]
|
||||
recipe = zc.recipe.cmmi
|
||||
|
Loading…
Reference in New Issue
Block a user