Python code coverage and reverse engineering

I just found this Python coding style guidelines and I want to comment on the following paragraph regarding changing a function/method’s behaviour:

Even with unit testing, it’s really hard to track dependencies like this. We would need code coverage tools and exhaustive tests, neither of which we had.

I also find it hard to track dependencies in Python code and I’m aware of, at least, one code coverage tool for Python useful for improving test suites (but try to avoid some common pitfalls).

Trackbacks/Pingbacks:

  1. Reality tunnels » Blog Archive » Python code coverage revisited - August 15, 2006

    [...] Yesterday Ned Batchelder published an updated version of the code coverage tool for Python I mentioned in a past entry. [...]

Leave a Reply:

Gravatar Image

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>