• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Q 4 Mr. Hunt & Mr Thomas (5): unit test patterns

 
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Author
Posts: 55
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How do you mean, exactly?
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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."
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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 ]
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Talking about testing patterns, there's a book coming out this spring that you might want to keep on your shopping list
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
Talking about testing patterns, there's a book coming out this spring that you might want to keep on your shopping list


Sounds interesting. Lasse, thanks for your recommendation.
 
Gian Franco
blacksmith
Posts: 979
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Lasse,
It took me some postings to formulate my thoughts,
and now I'm curious to see how they bring it.
Greetings,
Gian Franco
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic