[Zope-dev] ANN: z3c.coverage 1.2.0
Marius Gedminas
marius at gedmin.as
Thu Feb 11 06:20:16 EST 2010
Heads up: I've just released z3c.coverage which renames the *.cover ->
HTML conversion script from bin/coverage to bin/coveragereport, to avoid
name clashes with Ned Batchelder's coverage. Your buildout/buildbot
config files and/or makefiles may need updating.
There are two ways to measure your test coverage and produce HTML
reports: first, use zope.testing's builtin trace.py support and
z3c.coverage
bin/test --coverage=dirname ...
bin/coveragereport parts/test/dirname outdir
The second way is to use http://pypi.python.org/pypi/coverage, which is
*much* faster but isn't as reliable (I've seen results that are
physically impossible, but haven't narrowed down the bug yet)
bin/coverage run bin/test ...
bin/coverage html -d outdir
Also, I'm not aware of a replacement for bin/coveragediff that supports
coverage.py, but a 4x speed increase is maybe worth a few bugs and
setbacks.
Marius Gedminas
--
http://pov.lt/ -- Zope 3 consulting and development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20100211/a5b50a2d/attachment.bin
More information about the Zope-Dev
mailing list