Effective Unit Testing is written to teach tips to write reliable tests—tests which are concise and to the purpose, expressive, worthy, and maintainable. encouraged by way of Roy Osherove's bestselling The paintings of Unit Testing, this e-book makes a speciality of instruments and practices particular to the Java international. It introduces you to rising options like behavior-driven improvement and specification by means of instance, and exhibits you the way so as to add powerful practices into your toolkit.
Test the elements sooner than you gather them right into a complete software, and you will get greater software program. For Java builders, there is now a decade of expertise with well-crafted assessments that count on difficulties, establish recognized and unknown dependencies within the code, and let you try out elements either in isolation and within the context of an entire application.
About this Book
Effective Unit Testing teaches Java builders how you can write unit assessments which are concise, expressive, necessary, and maintainable. providing crisp reasons and easy-to-absorb examples, it introduces rising thoughts like behavior-driven improvement and specification via example.
Programmers who're already unit checking out will study the present cutting-edge. those who find themselves new to the sport will research practices that might serve them good for the remainder of their career.
buy of the print e-book comes with a proposal of a loose PDF, ePub, and Kindle e-book from Manning. additionally on hand is all code from the ebook.
About the Author
Lasse Koskela is a trainer, coach, advisor, and programmer. He hacks on open resource tasks, is helping businesses enhance their productiveness, and speaks usually at meetings all over the world. Lasse is the writer of try out pushed, additionally released through Manning. What's Inside
- A thorough advent to unit testing
- Choosing best-of-breed tools
- Writing exams utilizing dynamic languages
- Efficient try out automation
Table of Contents
PART 1 FOUNDATIONS
- The promise of fine tests
- In seek of good
- Test doubles
PART 2 CATALOG
PART three DIVERSIONS
- Testable design
- Writing assessments in different JVM languages
- Speeding up try execution