[TIP] Test discovery for unittest
Michael Foord
fuzzyman at voidspace.org.uk
Fri Apr 10 10:32:24 PDT 2009
Benji York wrote:
> On Fri, Apr 10, 2009 at 12:28 PM, Michael Foord
> <fuzzyman at voidspace.org.uk> wrote:
>
>> Olemis Lang wrote:
>>
>>> I personally think that doctest is the most beautiful implementation
>>> ever made for the following XUnit test patterns :
>>>
>>> - Deltha Assertion
>>> - Scripted Test
>>> - Recorded Test
>>> - Data-Driven Test
>>> - Behavior Verification
>>> - State Verification
>>>
>>> and still allows being meta + agile
>>>
>>>
>> Doctest is simply awful for Test Driven Development, the cornerstone of
>> agile.
>>
>
> I disagree.
>
> Thankfully you provided no support for your argument so I don't
> have to either. :)
>
Doctest how I loathe thee:
http://www.voidspace.org.uk/python/weblog/arch_d7_2008_10_25.shtml#e1022
A list of reasons from my experiences of testing ConfigObj with doctest:
http://www.voidspace.org.uk/python/weblog/arch_d7_2008_01_12.shtml#e920
Why doctest makes poor unittests:
http://andrew.puzzling.org/diary/2008/October/24/more-doctest-problems
Minor comments from me (particularly missing assert methods):
http://www.voidspace.org.uk/python/weblog/arch_d7_2008_10_25.shtml#e1023
Michael
--
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog
More information about the testing-in-python
mailing list