[Zope-dev] coverage.py, profile and hotshot support in Zope's testrunner

Sidnei da Silva sidnei at enfoldsystems.com
Sun Aug 21 09:44:35 EDT 2005


On Sun, Aug 21, 2005 at 10:20:28AM +0200, Stefane Fermigier wrote:
| I have added support for coverage analysis using coverage.py from Gareth 
| Rees and Ned Batchelder, as well as support for profiling using either the 
| profile or hotshot modules from the Python standard library, to Zope 2's 
| test runner test.py.
| 
| Justification:
| 
| - coverage.py will let you interactively focus on the modules you want to 
| check for coverage.
| 
| - profile is slow to collect data but quick for analysis.
| 
| - hotshot is fast when collecting but very slow for analysis. On the other 
| hand, one can feed the great KCacheGrind tool with hotshot data after some 
| transformation and this is the best way I have found so far for 
| interactively exploring profile data.

Eerm, the test runner in Zope 2 is the same from Zope 3. The version
in Zope 3 X3.0 has profile support using hotshot and coverage support
using the trace.py module, but the version in Zope 2 is earlier than
that.

How does that differ from what you're proposing?


-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


More information about the Zope-Dev mailing list