[TIP] [ANN] simppu.py -- Simply Python Unit Testing

Marius Gedminas marius at gedmin.as
Wed Mar 17 02:48:42 PDT 2010


On Wed, Mar 17, 2010 at 03:47:17AM +0200, Pekka Klärck wrote:
> After using unittest for several years I've started to get slightly
> bored with it. There are several annoyances, but my pet peeves are the
> need to write boring boilerplate, the lack of test discovery, and the
> PEP-8 incompatible. Because it seems unittest2 isn't going to fix too
> many of these problems, and my actual needs for a unit testing tool
> are fairly simple, I decided to see could I write a tool that actually
> works the way I want.
> 
> After few hours hacking, and 132 lines of Python, I have a pretty
> promising prototype that:
> - requires zero boilerplate (any function or method starting with
> 'test_' in a file starting with 'test_' is a test),
> - can find tests recursively from a directory,
> - is naturally PEP-8 compatible, and
> - can execute also old unittest based tests.

It sounds like you've reinvented nose?
http://pypi.python.org/pypi/nose

Marius Gedminas
-- 
If "con" is the opposite of "pro", then what is the opposite of progress?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20100317/092aa337/attachment.pgp>


More information about the testing-in-python mailing list