[size=10]Image from pragprog.com[/size]
Publisher: The Pragmatic Bookshelf
[quote=The Pragmatic Bookshelf]
The Pragmatic Programmers classic is back! Freshly updated for modern software development, Pragmatic Unit Testing in Java 8 With JUnit teaches you how to write and run easily maintained unit tests in JUnit with confidence. You’ll learn mnemonics to help you know what tests to write, how to remember all the boundary conditions, and what the qualities of a good test are. You’ll see how unit tests can pay off by allowing you to keep your system code clean, and you’ll learn how to handle the stuff that seems too tough to test.[/quote]
[size=18][b]Book Preview (when available)[/b][/size]
[size=18][b]From the publisher[/b][/size]
[list][url=http://media.pragprog.com/titles/utj2/first.pdf]Building Your First JUnit Test (excerpt)[/url][/list]
[list][url=http://media.pragprog.com/titles/utj2/bicep.pdf]What to Test: The Right-BICEP (excerpt)[/url][/list]
[list][url=http://media.pragprog.com/titles/utj2/refactoring.pdf]Refactoring to Cleaner Code (excerpt)[/url][/list]
[size=18][b]Where to get it?[/b][/size]
In 'Pragmatic Unit Testing in Java 8' Jeff demonstrates a very effective way to develop software, that just happens to involve writing a lot of Unit Tests. While the book is aimed as Java programmers who are new to Unit Testing, more experienced programmers are likely to learn a thing or two as well.
The book starts by guiding you through the development of a sample application discussing how and, quite importantly, how you might write useful Unit Tests to verify that the application works as intended. The 'why' topic is nicely supplemented with a sequence of hypothetical conversations between two colleagues, where one is not sold on the virtues of testing and the other puts forth a reasoned argument. Having a single example application to work with is a nice coherent way for the readers to practice the material being presented for themselves.
The author gives a selective exploration into the features of the jUnit testing framework that he finds most useful and highlights how to use them to write expressive test code. The later chapters reinforce an important concept that your test code is just as important as your production code, and equal care should be taken in keeping it clean. A valuable mindset.
Overall, Pragmatic Unit Testing in Java 8 is a solid introduction to unit testing and presents a wealth of tips, tricks, and good practices that will set any programmer in good stead. Recommended.
I give this book 8 out of 10 horseshoes.
Disclosure: I received a copy of this book from the publisher in exchange for reviewing this book on behalf of CodeRanch.
Tim Driven Development
Get me the mayor's office! I need to tell him about this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java