Product Description
Software testing is indispensable and is one of the most discussed topics in software development today. Many companies address this issue by assigning a dedicated software testing phase towards the end of their development cycle. However, quality cannot be tested into a buggy application. Early and continuous unit testing has been shown to be crucial for high quality software and low defect rates. Yet current books on testing ignore the developer's point of view and give little guidance on how to bring the overwhelming amount of testing theory into practice. Unit Testing in Java represents a practical introduction to unit testing for software developers. It introduces the basic test-first approach and then discusses a large number of special issues and problem cases. The book instructs developers through each step and motivates them to explore further.
*Shows how the discovery and avoidance of software errors is a demanding and creative activity in its own right and can build confidence early in a project.
*Demonstrates how automated tests can detect the unwanted effects of small changes in code within the entire system.
*Discusses how testing works with persistency, concurrency, distribution, and web applications.
*Includes a discussion of testing with C++ and Smalltalk.
Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) Reviews
Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) Reviews
| 18 of 19 people found the following review helpful: This review is from: Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) (Paperback) This book starts by covering general techniques in unit testing, including when and why to do it, how to know if you are doing it right, and how it integrates with other development practices. This is good stuff, but mostly also covered in other books. The section on Mock Objects is especially well done though, illuminating an often misunderstood topic area.The latter half is where this book shines. It tackles some of the really tough areas and does it very well. Singletons, database persistence, asynchronous services, concurrent and distributed systems, web applications and graphical user interfaces; all these are often skipped over as "too hard to test". If you've ever found yourself thinking something like that, you need this book. This book is a translation from a German original. Although the translators have done a tremendous job with the technical content, sometimes a phrase or section title, especially in the initial introduction can seem very unusual. Don't be put... Read more 14 of 14 people found the following review helpful: This review is from: Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) (Paperback) Let me first say that this book has not been my first contact with unit testing and test-driven programming: I recently read Kent Beck's "Test-Driven Development" and followed some of the unit testing threads in the Extreme Programming discussion group. Beck's book left me somewhat helpless and thinking "And how do I use that in real work?" Johannes Link's book had much more to offer for me in that respect, especially in the second part where he tackles the problems of web apps, database programming, user interfaces and distributed programs. I certainly liked his treatment of mock objects. Mr Link seems to be a pragmatic proponent of test-driven development - a good thing as far as I'm concerned - and he also has lots of reasonable advice for those testing their programs after the fact.On the downside there is this chapter about unit testing within more traditional software development. These pages might be useful for others; I don't think they belong in this otherwise... Read more 6 of 6 people found the following review helpful: By Amazon Verified Purchase This review is from: Unit Testing in Java: How Tests Drive the Code (The Morgan Kaufmann Series in Software Engineering and Programming) (Paperback) This is a very readable introduction to unit testing, a good first book for anyone wanting a sound approach to software testing. The main text is divided into two parts. The first is a clear introduction to the basics of the JUnit test framework. The pace is gentle, and the entire discussion is built around sample code - very helpful for the beginner who thinks in concrete terms. Link (the author) omits the JUnit API information that's already available in JUnit's JavaDoc pages. Those are just the basic words available in the framework; Link's goal is to put them together into meaningful test phrases. Throughout this half of the book, the reader is shown a number of common situations with non-obvious solutions. At each step, Link presents a little theory (plus some nice references), a little refactoring to improve the system's testability, and enough sample code to make the solution clear. This isn't a textbook on the theory of testing. Still, by the end of this first... Read more |
› See all 9 customer reviews...
ไม่มีความคิดเห็น:
แสดงความคิดเห็น