On Mon, 22 Feb 2010 08:21:14 -0800 (PST)
zpcspm <[email protected]> wrote:

> Tests involving interaction with a web/sql server, any networking I/O
> and such, are not unit tests. Period. I was making the same mistake
> for quite a few years. The AHA happened when I've read the book
> "Working Effectively with Legacy Code" by Michael Feathers. I suggest
> you to get that book and read the definition of unit tests: unit tests
> are small, they test small code snippets and they complete quickly. If
> this is not true - you can't call them unit tests.

Ok, fine, so the cases for which I find it particularly difficult to write unit 
tests aren't appropriate for unit testing anyway.  That makes me feel better I 
guess.

Perhaps I should be writing unit tests for small parts of the processing of the 
complex entity after it's been acquired from the client or server or whatever.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to