Effective Unit Testing

Lasse Koskela
3.8
118 ratings 18 reviews
Code is written by humans who make mistakes - hence bugs and the need for testing. Savvy Java developers know that not all testing is created equal. In addition to traditional functional testing, many shops are adopting developer testing techniques such as unit testing. Specific, automated tests are created to verify the accuracy and function of code while or even before it's written - to catch bugs early. Unit Testing in Java teaches how to write good tests that are concise and to the point, useful, and maintainable. This book focuses on tools and practices specific to Java. It introduces emerging techniques like specification by example and behavior-driven development, and shows how to add robust practices into developers' toolkits. Table of Contents I. FOUNDATIONS 1. The promise of good tests 2. In search of good 3. Test doubles II. CATALOG 4. Readability 5. Maintainability 6. Trustworthiness III. DIVERSIONS 7. Testable design 8. Writing tests in other JVM languages 9. Speeding up test executions Appendix A: JUnit primer Appendix B: Extending JUnit Index
Genres: ProgrammingSoftwareTechnologyNonfictionComputer ScienceScienceTechnical
350 Pages

Community Reviews:

5 star
25 (21%)
4 star
50 (42%)
3 star
38 (32%)
2 star
4 (3%)
1 star
1 (1%)

Readers also enjoyed

Other books by Lasse Koskela

Lists with this book

Scrum Shortcuts Without Cutting Corners: Agile Tactics, Tools & Tips (Addison-Wesley Signature Series
Agile Product Owner Secrets Valuable Proven Results for Agile Management Revealed
DevOps for Developers
Agile books new in 2013
24 books4 voters
Test-Driven Development: By Example
The Art of Unit Testing: With Examples in .NET
Growing Object-Oriented Software, Guided by Tests
Best TDD Books
67 books16 voters