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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope )

Reply via email to