[Zope-dev] zope.testing coverage support

Christian Theune ct at gocept.com
Tue Jan 26 02:51:42 EST 2010


On 01/18/2010 05:34 AM, Martin Aspeli wrote:
> Stephan Richter wrote:
>> On Sunday 17 January 2010, Martin Aspeli wrote:
>>> I'm using zope.testing-3.7.7, which is what comes with Zope 2.12.
>>
>> Here is what I have in effectively any package:
>>
>> [coverage-test]
>> recipe = zc.recipe.testrunner
>> eggs = pkg [test]
>> defaults = ['--coverage', '../../coverage']
>>
>> [coverage-report]
>> recipe = zc.recipe.egg
>> eggs = z3c.coverage
>> scripts = coverage=coverage-report
>> arguments = ('coverage', 'coverage/report')
> 
> Thanks!
> 
> As a matter of constructive criticism, it would be useful to have 
> something like this on the z3c.caching PyPI page. Right now, there is no 

That's a typo, right?

> way that I can see to understand how the package is meant to be used 
> from that page, or any of the other documentation.
> 
> It'd also be useful to note that enscript must be installed for syntax 
> highlighting to work. I only figured that out by reading the source.

Also, if this functionality is useful, I'd rather see this folded into
the mainstream runner.

At some point, the test runner recipe could also be provided by the
zope.testing package itself IMHO.

Christian

-- 
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development



More information about the Zope-Dev mailing list