Originally posted by Nigel Browne: How much coverage does unit testing multi-threaded programs receive in the book?
Quite frankly, we did not cover unit testing of multithreaded programs.
I actually had the pleasure to work with a team devoted to testing years ago. To me, the skill was probably more of an art -- especially when it comes to system and load testing. I am not sure if we can do testing of threads better than a testing book discussion of threads.
To everyone else, if you feel that this is important, let me know here... we can have a discussion on what features you would like to see included.
Here is a bit of history... During the development of the first edition, I wanted to put in a section on Debugging. It didn't make the cut. 7 years later, with the 3rd edition, debugging still didn't make the cut...
Why? there were too many issues... Back then, java debugging was too immature. With the 3rd edition, we just couldn't get it to work as a chapter. It was either too specific to a particular tool, or there were just not enough "practical" information to be useful. We even considered writing support classes, but... it never came together.
Anyway, something tells me, testing may have the same problem. It may be too specific to a particular tool, or just too obscure to most readers that it may be better done for a testing book. In any case, I may be wrong, so please keep adding your suggestions here.
Joined: Jul 12, 2004
I have read in the last weeks some articles on testing threads with mock objects. Maybe I will get my minds up and post here the links .
Ko Ko Naing
Joined: Jun 08, 2002
Originally posted by Henry Wong: Anyway, something tells me, testing may have the same problem. It may be too specific to a particular tool, or just too obscure to most readers that it may be better done for a testing book. In any case, I may be wrong, so please keep adding your suggestions here.
Even though we need to stick into a particular tool, the book may just discuss about famous tools like JUnit and so on... But testing books may not emphasize solely on threading issue... Your book might get more advantages on it...
Just my suggestion...
Joined: Jul 12, 2004
Henry I was asking about this because I thought you might have some interesting proposals, as the ones I've quoted (in fact till now I cannot find out the links for testing multithreading using mock).
BTW, I didn't mean for this topic to sound somewhat negative. It isn't. Both debugging and testing are now on my official to-do list for the next edition. I still can't guarantee either will make the cut, but I'll try...