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

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

xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)
List Price: $54.99
Our Price: $41.87
You Save: $13.12 (24%)
Availability: Usually ships in 1-2 business days
Buy Used: from $41.84 (click here)
Category: Book
See more book details and other editions


(Click here)
Buy this book at online book store in your country
Canada | UK | Germany | France

Book Summary Information

Author: Gerard Meszaros
Edition: Hardcover
Audio: English (Original Language); English (Unknown); English (Published)
Published: 2007-05-31
ISBN: 0131495054
Number of pages: 833
Publisher: Addison-Wesley

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

Book Review: Inspired to Test
Summary: 5 Stars

I've been familiar with agile concepts of automated unit testing (AUT) and test-driven development (TDD) for awhile now. In the past few years I've made several attempts at incorporating AUT and TDD into my own personal workflow, but each attempt soon resulted in my abandoning the whole idea. The testing effort quickly outweighed the benefits. I've believed in the ideal of TDD, but I didn't see quite how to pull it off.

Then I bought XUnit Test Patterns by Gerard Meszaros. Wow! Finally the issues I've struggled with are being addressed. Okay, I must admit I'm not very plugged in to the online software development community, and I'm sure these issues have been discussed before. But this book looks special. I sense it's giving voice to these issues in a big way that's introducing many developers to these ideas for the first time. After all, it had to take time for this kind of book to be written. Time for the patterns to be developed through hard and frustrating work.

Rarely have I bought a thick book on software development and eagerly read every single word from cover to cover. But I have with this book. And I know I'll soon do it again. I'm even tempted to also purchase the PDF version of the book, just so I can reference it wherever I happen to be.

It's not the final word on AUT, but it has me embracing the ideal of TDD once more. The company I work for develops a huge OO-based enterprise software system with no automated tests. As Meszaros explains, this kind of legacy system is the most difficult for incorporating AUT (and daunting for those new to AUT). But at least now I feel like we have a good chance.

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

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?


Software Development Books

Book Subjects
Most talked about in Software Design and Testing
Refactoring Workbook (Addison-Wesley Object Technology Series) ImageRefactoring Workbook (Addison-Wesley Object Technology Series)
by William C. Wake
Addison-Wesley Professional; Published: 2003-09-06; Paperback; Book
Best price: $20.00
Price in other shops: $39.99
Refactoring: Improving the Design of Existing Code (Addison-Wesley Object Technology Series) ImageRefactoring: Improving the Design of Existing Code (Addison-Wesley Object Technology Series)
by Martin Fowler, Kent Beck, John Brant, William Opdyke, Don Roberts
Addison-Wesley Professional; Published: 1999-07-08; Hardcover; Book
Best price: $38.87
Price in other shops: $59.99
Beautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly)) ImageBeautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly))
O'Reilly Media, Inc.; Published: 2007-06-26; Paperback; Book
Best price: $25.00
Price in other shops: $44.99
The Art of the Metaobject Protocol ImageThe Art of the Metaobject Protocol
by Gregor Kiczales
The MIT Press; Published: 1991-07-30; Paperback; Book
Best price: $34.27
Price in other shops: $48.00
Patterns of Enterprise Application Architecture (Addison-Wesley Signature Series) ImagePatterns of Enterprise Application Architecture (Addison-Wesley Signature Series)
by Martin Fowler
Addison-Wesley Professional; Published: 2002-11-15; Hardcover; Book
Best price: $34.99
Price in other shops: $64.99
Test Driven Development: By Example (Addison-Wesley Signature Series) ImageTest Driven Development: By Example (Addison-Wesley Signature Series)
by Kent Beck
Addison-Wesley Professional; Published: 2002-11-18; Paperback; Book
Best price: $27.94
Price in other shops: $44.99
xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series) ImagexUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series)
by Gerard Meszaros
Addison-Wesley; Published: 2007-05-31; Hardcover; Book
Best price: $41.65
Price in other shops: $54.99
Pragmatic Unit Testing in C# With Nunit ImagePragmatic Unit Testing in C# With Nunit
by Andy/ Thomas, Dave/ Hargett, Matt (CON) Hunt
Oreilly & Associates Inc; Published: 2007-08-01; Paperback; Book
Best price: $33.93
Refactoring Databases: Evolutionary Database Design (Addison-Wesley Signature Series) ImageRefactoring Databases: Evolutionary Database Design (Addison-Wesley Signature Series)
by Scott W. Ambler, Pramodkumar J. Sadalage
Addison-Wesley Professional; Published: 2006-03-13; Hardcover; Book
Best price: $24.98
Price in other shops: $59.99
Refactoring to Patterns (Addison-Wesley Signature Series) ImageRefactoring to Patterns (Addison-Wesley Signature Series)
by Joshua Kerievsky
Addison-Wesley Professional; Published: 2004-08-15; Hardcover; Book
Best price: $37.92
Price in other shops: $59.99
Similar Books and other products
RESTful Web Services ImageRESTful Web Services
by Leonard Richardson, Sam Ruby
O'Reilly Media, Inc.; Published: 2007-05-08; Paperback; Book
Best price: $22.11
Price in other shops: $39.99
Patterns of Enterprise Application Architecture (Addison-Wesley Signature Series) ImagePatterns of Enterprise Application Architecture (Addison-Wesley Signature Series)
by Martin Fowler
Addison-Wesley Professional; Published: 2002-11-15; Hardcover; Book
Best price: $34.99
Price in other shops: $64.99
Refactoring Databases: Evolutionary Database Design (Addison-Wesley Signature Series) ImageRefactoring Databases: Evolutionary Database Design (Addison-Wesley Signature Series)
by Scott W. Ambler, Pramodkumar J. Sadalage
Addison-Wesley Professional; Published: 2006-03-13; Hardcover; Book
Best price: $24.98
Price in other shops: $59.99
Refactoring to Patterns (Addison-Wesley Signature Series) ImageRefactoring to Patterns (Addison-Wesley Signature Series)
by Joshua Kerievsky
Addison-Wesley Professional; Published: 2004-08-15; Hardcover; Book
Best price: $37.92
Price in other shops: $59.99
Beautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly)) ImageBeautiful Code: Leading Programmers Explain How They Think (Theory in Practice (O'Reilly))
O'Reilly Media, Inc.; Published: 2007-06-26; Paperback; Book
Best price: $25.00
Price in other shops: $44.99
Refactoring: Improving the Design of Existing Code (Addison-Wesley Object Technology Series) ImageRefactoring: Improving the Design of Existing Code (Addison-Wesley Object Technology Series)
by Martin Fowler, Kent Beck, John Brant, William Opdyke, Don Roberts
Addison-Wesley Professional; Published: 1999-07-08; Hardcover; Book
Best price: $38.87
Price in other shops: $59.99
Working Effectively with Legacy Code (Robert C. Martin Series) ImageWorking Effectively with Legacy Code (Robert C. Martin Series)
by Michael Feathers
Prentice Hall PTR; Published: 2004-10-02; Paperback; Book
Best price: $42.70
Price in other shops: $56.99
Test Driven Development: By Example (Addison-Wesley Signature Series) ImageTest Driven Development: By Example (Addison-Wesley Signature Series)
by Kent Beck
Addison-Wesley Professional; Published: 2002-11-18; Paperback; Book
Best price: $27.94
Price in other shops: $44.99
Implementation Patterns (Addison-Wesley Signature Series) ImageImplementation Patterns (Addison-Wesley Signature Series)
by Kent Beck
Addison-Wesley Professional; Published: 2007-11-02; Paperback; Book
Best price: $27.42
Price in other shops: $39.99
Continuous Integration: Improving Software Quality and Reducing Risk (Addison-Wesley Signature Series) ImageContinuous Integration: Improving Software Quality and Reducing Risk (Addison-Wesley Signature Series)
by Paul Duvall, Steve Matyas, Andrew Glover
Addison-Wesley Professional; Published: 2007-07-09; Paperback; Book
Best price: $32.90
Price in other shops: $44.99
Book store. Illustrated catalog of books on different categories