Dear authors, This subject has really got me thinking now In your opinion, do you think that unit tests seen as small/manageable checks on the code might eventually be used collectively in somekind of pattern fashion, in order to perform different specialized types of tests? Or am I right off track here? Best regards, Gian Franco Casula
Well, I was thinking that unit tests right now are set up by the programmer according to prescriptions and best practices that for example your book provides. But correct me if I'm wrong, I might be saying nonsense right now, these prescriptions might eventually be consolidated in generic test suites that the programmer might use as a template for setting up his/her tests. Just like patterns. Thanks for bearing with me, Gian Franco
I'm not sure if this answers your question, but... You should treat your test code with the same amount of love than with production code. You should refactor your test code just like you refactor your production code, and this will eventually lead to some degree of "testing patterns."
Originally posted by Lasse Koskela: You should treat your test code with the same amount of love than with production code. You should refactor your test code just like you refactor your production code, and this will eventually lead to some degree of "testing patterns."
Yep, that's the direction I was thinking in: just wondering whether unit test experts by seeing many programmers concocting their own precious unit tests might be seeing recurring testing patterns. Thanks, Gian Franco [ February 19, 2004: Message edited by: Gian Franco Casula ]
Joined: Jan 23, 2002
Talking about testing patterns, there's a book coming out this spring that you might want to keep on your shopping list