[TIP] unittest & TDD
Michael Foord
fuzzyman at voidspace.org.uk
Mon Mar 5 06:45:31 PST 2007
Titus Brown wrote:
> -> > In general, as much criticism as unittest has received for its
> -> > complexity, we've found it to be pretty useful for functional testing;
> -> > in fact, all of our tests--unit tests, functional tests, and manual
> -> > tests--use the unittest framework, which makes collecting the test
> -> > results easier for us.
> -> >
> -> Same here.
> ->
> -> I've never understood the unittest complexity issue - it seems
> -> straightforward to me ?? Perhaps it is a documentation issue.
>
> It's straightforward to people who "get" unit testing, I think ;).
> I don't think it's particularly complex; I don't like it because
> organizing hierarchies of tests is cumbersome. I find "discovery"
> frameworks like nose and py.test to be much nicer when organizing even
> medium-level test suites.
>
> Anyhoo, sort of OT, check out James Shore's latest chapter on TDD:
>
> http://www.jamesshore.com/Agile-Book/test_driven_development.html
>
> Michael, I think it addresses some of the issues you brought up.
>
>
Cool - looks very interesting.
Somewhat at PyCon also recommended XUnitPatterns - http://xunitpatterns.com/
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/articles.shtml
> cheers!
> --titus
>
>
More information about the testing-in-python
mailing list