[Zope-dev] zope.testing coverage support

Hanno Schlichting hanno at hannosch.eu
Sun Jan 17 10:39:22 EST 2010


Hi.

On Sun, Jan 17, 2010 at 4:08 PM, Martin Aspeli <optilude+lists at gmail.com> wrote:
> A couple of questions about zope.testing's --coverage option:

I think the standard option is to use something like this buildout snippet:

[coverage-test]
recipe = zc.recipe.testrunner
eggs = ${buildout:eggs}
defaults = ['--coverage', '../../coverage']

[coverage-report]
recipe = zc.recipe.egg
eggs = z3c.coverage
scripts = coverage=coverage-report
arguments = ('coverage', 'report')

And then run:

bin/coverage-test
bin/coverage-report

Hanno


More information about the Zope-Dev mailing list