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 +=
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user