[TIP] Test discovery for unittest
robertc at robertcollins.net
Fri Apr 10 15:46:16 PDT 2009
On Fri, 2009-04-10 at 18:32 +0100, Michael Foord wrote:
> Doctest how I loathe thee:
> A list of reasons from my experiences of testing ConfigObj with
> Why doctest makes poor unittests:
> Minor comments from me (particularly missing assert methods):
I like two things about doctest:
When I *am writing documentation* it is useful to make sure the examples
The string pattern matching is very pithy. Some time ago I figured out
how to glue this into unittest as an assertion, but I managed to lose
the glue and haven't gotten around to glueing it back in again:(.
I don't like doctest for TDD because TDD doesn't follow a narrative.
When I've watched folk TDD with doctest they tend to end up with just
integration or acceptance tests, and little else :(.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.idyll.org/pipermail/testing-in-python/attachments/20090411/c0adc3df/attachment.pgp
More information about the testing-in-python