[Python-Dev] Unit testing (again)

Michel Pelletier michel@digicool.com
Mon, 12 Feb 2001 18:06:25 -0800 (PST)


On Mon, 12 Feb 2001, Andrew Kuchling wrote:

> * A way to write test cases that doesn't bring the test method to a halt if 
>   something raises an unexpected exception

I'm not sure what you mean by this, but Jim F. recently sent this email
around internally:

"""
Unit tests are cool.

One problem is that after you find a problem, it's
hard to debug it, because unittest catches the exceptions.

I added debug methods to TestCase and TestSuite so
that you can run your tests under a debugger.  When you are
ready to debug a test failure, just call debug() on your test
suite or case under debugger control.

I checked this change into our CVS and send the auther of PyUnit a
message.

Jim
"""

I don't think it adressed your comment, but it is an interesting related
feature.

-Michel