Simplest-shop.com

     

online shopping, the simple way

Welcome | Help
Search for
in
Home > Books > xUnit Test Patterns Refactoring Test Code Addison Wesley Signature Series
This website will be shutdown on 2008-04-01.
my cart Add to shopping cart

xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)

 Rating 4
enlarged image: xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)
enlarge imageEnlarge image
80% Recommended by our customers.
Publisher: Addison-Wesley
Catalog: Book
Release date: 2007-05-31
Media: Hardcover
Number of pages: 833
Ean: 9780131495050
Book Isbn: 0131495054
tip Tip: compare prices with similar books

Author:
Gerard Meszarossee more Books by Gerard Meszaros

Top stores Description Price Link to shop
amazon.com Availability: in 24 hours
Current discount:20% off !!
$43.99
used9 used offers, as low as...$41.84see more used offers
all new37 thirdParty new offers, as low as...$41.87see more ThirdParty new offers

Professional Review:

Automated testing is a cornerstone of agile development. An effective testing strategy will deliver new functionality more aggressively, accelerate user feedback, and improve quality. However, for many developers, creating effective automated tests is a unique and unfamiliar challenge.

xUnit Test Patterns is the definitive guide to writing automated tests using xUnit, the most popular unit testing framework in use today. Agile coach and test automation expert Gerard Meszaros describes 68 proven patterns for making tests easier to write, understand, and maintain. He then shows you how to make them more robust and repeatable--and far more cost-effective.

Loaded with information, this book feels like three books in one. The first part is a detailed tutorial on test automation that covers everything from test strategy to in-depth test coding. The second part, a catalog of 18 frequently encountered "test smells," provides trouble-shooting guidelines to help you determine the root cause of problems and the most applicable patterns. The third part contains detailed descriptions of each pattern, including refactoring instructions illustrated by extensive code samples in multiple programming languages.

Topics covered include

  • Writing better tests--and writing them faster
  • The four phases of automated tests: fixture setup, exercising the system under test, result verification, and fixture teardown
  • Improving test coverage by isolating software from its environment using Test Stubs and Mock Objects
  • Designing software for greater testability
  • Using test "smells" (including code smells, behavior smells, and project smells) to spot problems and know when and how to eliminate them
  • Refactoring tests for greater simplicity, robustness, and execution speed

This book will benefit developers, managers, and testers working with any agile or conventional development process, whether doing test-driven development or writing the tests last. While the patterns and smells are especially applicable to all members of the xUnit family, they also apply to next-generation behavior-driven development frameworks such as RSpec and JBehave and to other kinds of test automation tools, including recorded test tools and data-driven test tools such as Fit and FitNesse.


Visual Summary of the Pattern Language 
Foreword

Preface

Acknowledgments

Introduction

Refactoring a Test

PART I: The Narratives
Chapter 1 A Brief Tour
Chapter 2 Test Smells
Chapter 3 Goals of Test Automation
Chapter 4 Philosophy of Test Automation
Chapter 5 Principles of Test Automation
Chapter 6 Test Automation Strategy
Chapter 7 xUnit Basics
Chapter 8 Transient Fixture Management
Chapter 9 Persistent Fixture Management
Chapter 10 Result Verification
Chapter 11 Using Test Doubles
Chapter 12 Organizing Our Tests
Chapter 13 Testing with Databases
Chapter 14 A Roadmap to Effective Test Automation
PART II: The Test Smells 
Chapter 15 Code Smells
Chapter 16 Behavior Smells
Chapter 17 Project Smells
PART III: The Patterns 
Chapter 18 Test Strategy Patterns
Chapter 19 xUnit Basics Patterns
Chapter 20 Fixture Setup Patterns
Chapter 21 Result Verification Patterns
Chapter 22 Fixture Teardown Patterns
Chapter 23 Test Double Patterns
Chapter 24 Test Organization Patterns
Chapter 25 Database Patterns
Chapter 26 Design-for-Testability Patterns
Chapter 27 Value Patterns
PART IV: Appendixes
Appendix A Test Refactorings  
Appendix B xUnit Terminology 
Appendix C xUnit Family Members
Appendix D Tools
Appendix E Goals and Principles
Appendix F Smells, Aliases, and Causes
Appendix G Patterns, Aliases, and Variations
Glossary
References 

Index 



User Reviews:
 Rating 5   Written on June 15, 2007
   Summary: A Must Have Reference
Anyone who is serious about automated testing on their project should go out and read this book ASAP. Like Patterns of Enterprise Application Architecture [Fowler] and Design Patterns [GoF] before it, Gerard Meszaros has put together a very through (if not large... the book is twice the size of PoEAA)reference and catalog of test patterns to make testing more efficient.

The book is rather voluminous, divided up into 3 parts. The first part, "The Narratives", is a refreshing lecture on the philosophy of test automation, a brief on test smells, test organization, and tests with external resources. Essentially an overview of several concepts involved in test automation.

Part 2, aptly titled "The Test Smells," covers some of the common test smells, such as "Hard-to-Test Code", "Fragile Test", and "Slow Test" just to name a few. These are organized in the format Symptoms, Impact, Troubleshooting Advice, and Causes, with the Causes section broken down by cause, with Symptoms, Root Cause, and Possible Solution listed for each. I was impressed with this section as I already recognized some of the smells, as well as having already applied some of the solutions listed in the past.

Part 3 is "The Patterns", which follows the form of most patten catalogs out there. This is the largest section as it makes up more than half of the book, covering a lot of a ground. The patterns are given in a similar form to the ones in PoEAA, and provide easy to follow examples and in depth analysis. I was happy to find myself applying two of the patterns in the section already on a current project.

Overall, great book. Highly Recommended. ;)


 Rating 5   Written on June 7, 2007
   Summary: Fills an important void
Writing good tests is not easy. Different developers have come up with many techniques to improve tests. You might have used Backdoor Manipulation to make tests faster or used Custom Assertions to make an Obscure Test more readable. Sometimes a failing test caused you to play Assertion Roulette while you were trying to figure out who the Mystery Guest in this test is and what role he plays.

Gerard documented these (and many more) smells and patterns to help you write better tests. If you have written tests, you have probably used some of them, but even then looking at the patterns described in this book will help you tune your technique. For example Custom Assertions should always take the actual and expected values as parameters, so assertMagicObjectsAreEqual(actual, expected) is good, assertEverythingIsAlright(actual) is bad. And now you have a name for this technique, which makes it easier to explain to your fellow developers what you are doing. At 800+ pages you are bound to find plenty of new techniques as well.

If you are worried that this is another work by the pattern weenies, rest assured. The book follows the very simple and pragmatic "How It Works" and "When to Use It" format also used by Martin Fowlers' Patterns of Enterprise Application Architecture.

Comparison map
Wondering how the book "xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)" relates to similar books? Find out at a glance here:
Price comparison xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)
xUnit Test Patterns: Refactoring Test Code...
Continuous Integration: Improving Software Quality and Reducing Risk (Addison-Wesley Signature Series)
Continuous Integration: Improving Software Quality...
Implementation Patterns (Addison-Wesley Signature Series)
Implementation Patterns (Addison-Wesley Signature...
Test Driven Development: By Example (Addison-Wesley Signature Series)
Test Driven Development: By Example...
Working Effectively with Legacy Code (Robert C. Martin Series)
Working Effectively with Legacy Code (Robert C....
Refactoring: Improving the Design of Existing Code (Addison-Wesley Object Technology Series)
Refactoring: Improving the Design of Existing Code...
Our price$43.99$37.53$33.59$37.51$48.54$47.99
List price$54.99$44.99$39.99$44.99$56.99$59.99
Lowest used price$41.84$39.98$28.00$26.90$38.98$25.20
Lowest new price$41.87$33.72$27.25$24.92$39.05$31.80
CatalogBookBookBookBookBookBook
Release date2007-05-312007-07-092007-11-022002-11-182004-10-021999-07-08
MediaHardcoverPaperbackPaperbackPaperbackPaperbackHardcover
Number of pages833336176240456464
Ean978013149505097803213363859780321413093978032114653397801311770559780201485677
Book Isbn013149505403213363800321413091032114653001311770520201485672
Upc---785342146530076092025986785342485677
Link to shop*
(opens in a new window)
BUY IT NOW*BUY IT NOW*BUY IT NOW*BUY IT NOW*BUY IT NOW*BUY IT NOW*
take one out?

I am here:
Home > Books > xUnit Test Patterns Refactoring Test Code Addison Wesley Signature Series
This website will be shutdown on 2008-04-01.

tell a friend about this pageE-mail this page

 
About the Simplest Shop | Help | Term of Use | Privacy Policy
Home | Contact us | Bookmark us | get paid for writing
Copyright Simplest-Shop.com 2004. All rights reserved