• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

To the authors

 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How much coverage does unit testing multi-threaded programs receive in the book?
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

Henry
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:
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.



Will you add this in the next edition of the book, if there are considerable amount of people interesting in unit testing issue of threads? :roll:
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:

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.

Henry



This would be indeed an interesting topic. Maybe we can continue it .

./pope
 
Nigel Browne
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Henry Wong:

I am not sure if we can do testing of threads better than a testing book discussion of threads.

Henry



I think that a discussion of the issues involved in testing threads and the common pitfalls would be useful.
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Henry
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .

./pope
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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...
 
Alexandru Popescu
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).

./pope
 
Henry Wong
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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...

Henry
reply
    Bookmark Topic Watch Topic
  • New Topic