Java theory and practice: Testing with leverage, Part 2
by Brian Goetz
|Published Date: 25th July, 2006|
About the book Java theory and practice: Testing with leverage, Part 2
Java theory and practice: Testing with leverage, Part 2 is a COMPUTER ENGINEERING book which was published by IBM on 25th July, 2006 . Brian Goetz is the author of this book. This book is written in English .
Part 1 of this brief series on effective testing built a FindBugs plugin to find a trivial bug pattern, that of calling System.gc(). Bug patterns identify problematic coding practices that are frequently found in the neighborhoods where bugs live. Of course, not all occurrences of bug patterns are necessarily bugs, but this doesn't keep bug pattern detectors from being tremendously useful. All that is needed for a bug pattern detector to be effective is that it turn up a high enough percentage of questionable code to make it worth the effort of using it. Creating bug pattern detectors can have very high leverage; once you've created a detector, you can run it on any code you want, now or in the future, and you might be surprised what turns up