X

Sign Up




READARA
xUnit Test Patterns: Refactoring Test Code

Overall Rating

NA

Reviews

NA

XUnit Test Patterns: Refactoring Test Code

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


No Image

Addison-Wesley

No image

Gerard Meszaros

No of Pages
833
Publisher
Addison-Wesley
ISBN-13
9780131495050
Awards
None
Book Format
Hardcover
Published Date
May 31, 2007

Circles

Not in any circle

Book Journey

Reviews [0]

Likes [0]

Recommends [0]

Bookshelf [0]

Table of Contents

No data Found

About Gerard Meszaros

No data Found

Other Books by Author

No Books Available

More Systems Analysis & Design Related Books

other Related books
Data Structure and Algorithmic Thinking with Python: Data Structure and Algorithmic Puzzles
Data Structure and Algorithmic Thinking with Python: Data Structure and Algorithmic Puzzles
Author :
Narasimha Karumanchi
Publisher :
CareerMonk Publications
Published Date :
Jan 29, 2015
No of Pages :
470
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Data Structures & Algorithm Analysis in C
Data Structures & Algorithm Analysis in C
Author :
Mark A. Weiss
Publisher :
Pearson
Published Date :
Jun 23, 2013
No of Pages :
656
Book Format :
Hardcover
Category :
Systems Analysis & Design
other Related books
The Best Interface Is No Interface: The simple path to brilliant technology (Voices That Matter)
The Best Interface Is No Interface: The simple path to brilliant technology (Voices That Matter)
Author :
Golden Krishna
Publisher :
New Riders
Published Date :
Feb 20, 2015
No of Pages :
256
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Hadoop in Practice
Hadoop in Practice
Author :
Alex Holmes
Publisher :
Manning Publications
Published Date :
Oct 12, 2014
No of Pages :
512
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Algorithms in C, Parts 1-5 (Bundle): Fundamentals, Data Structures, Sorting, Searching, and Graph Algorithms (3rd Edition)
Algorithms in C, Parts 1-5 (Bundle): Fundamentals, Data Structures, Sorting, Searching, and Graph Algorithms (3rd Edition)
Author :
Robert Sedgewick
Publisher :
Addison-Wesley Professional
Published Date :
Sep 10, 2001
No of Pages :
1200
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
The Data Warehouse Lifecycle Toolkit
The Data Warehouse Lifecycle Toolkit
Author :
Ralph Kimball, Margy Ross, Warren Thornthwaite, Joy Mundy, Bob Becker
Publisher :
Wiley
Published Date :
Jan 10, 2008
No of Pages :
672
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Head First Object-Oriented Analysis and Design
Head First Object-Oriented Analysis and Design
Author :
Brett D. McLaughlin, Gary Pollice, Dave West
Publisher :
O'Reilly Media
Published Date :
Dec 7, 2006
No of Pages :
636
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Fifty Quick Ideas to Improve Your User Stories
Fifty Quick Ideas to Improve Your User Stories
Author :
Gojko Adzic, David Evans
Publisher :
Neuri Consulting LLP
Published Date :
Oct 15, 2014
No of Pages :
124
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Data Structures and Algorithm Analysis in Java (3rd Edition)
Data Structures and Algorithm Analysis in Java (3rd Edition)
Author :
Mark A. Weiss
Publisher :
Pearson
Published Date :
Nov 28, 2011
No of Pages :
640
Book Format :
Hardcover
Category :
Systems Analysis & Design
other Related books
Business Analyst's Mentor Book: With Best Practice Business Analysis Techniques and Software Requirements Management Tips (Ba-Works Inspiring)
Business Analyst's Mentor Book: With Best Practice Business Analysis Techniques and Software Requirements Management Tips (Ba-Works Inspiring)
Author :
Emrah Yayici
Publisher :
EMRAH YAYICI
Published Date :
Jul 22, 2013
No of Pages :
106
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
BDD in Action: Behavior-driven development for the whole software lifecycle
BDD in Action: Behavior-driven development for the whole software lifecycle
Author :
John Ferguson Smart
Publisher :
Manning Publications
Published Date :
Oct 12, 2014
No of Pages :
384
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
The Business Analyst's Handbook
The Business Analyst's Handbook
Author :
Howard Podeswa
Publisher :
Cengage Learning PTR
Published Date :
Dec 8, 2008
No of Pages :
432
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
xUnit Test Patterns: Refactoring Test Code
xUnit Test Patterns: Refactoring Test Code
Author :
Gerard Meszaros
Publisher :
Addison-Wesley
Published Date :
May 31, 2007
No of Pages :
833
Book Format :
Hardcover
Category :
Systems Analysis & Design
other Related books
The Cucumber Book: Behaviour-Driven Development for Testers and Developers (Pragmatic Programmers)
The Cucumber Book: Behaviour-Driven Development for Testers and Developers (Pragmatic Programmers)
Author :
Matt Wynne, Aslak Hellesoy
Publisher :
Pragmatic Bookshelf
Published Date :
Feb 10, 2012
No of Pages :
336
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Specification by Example: How Successful Teams Deliver the Right Software
Specification by Example: How Successful Teams Deliver the Right Software
Author :
Gojko Adzic
Publisher :
Manning Publications
Published Date :
Jun 6, 2011
No of Pages :
296
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Domain-Driven Design Reference: Definitions and Pattern Summaries
Domain-Driven Design Reference: Definitions and Pattern Summaries
Author :
Eric Evans
Publisher :
Dog Ear Publishing
Published Date :
Sep 22, 2014
No of Pages :
88
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Systems Analysis and Design (Book Only) (Shelly Cashman Series)
Systems Analysis and Design (Book Only) (Shelly Cashman Series)
Author :
Harry J. Rosenblatt
Publisher :
Cengage Learning
Published Date :
Mar 1, 2013
No of Pages :
688
Book Format :
Hardcover
Category :
Systems Analysis & Design
other Related books
SOA Patterns
SOA Patterns
Author :
Arnon Rotem-Gal-Oz
Publisher :
Manning Publications
Published Date :
Sep 24, 2012
No of Pages :
296
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling
The Data Warehouse Toolkit: The Complete Guide to Dimensional Modeling
Author :
Ralph Kimball, Margy Ross
Publisher :
Wiley
Published Date :
Apr 26, 2002
No of Pages :
464
Book Format :
Paperback
Category :
Systems Analysis & Design
other Related books
Service Design Patterns: Fundamental Design Solutions for SOAP/WSDL and RESTful Web Services
Service Design Patterns: Fundamental Design Solutions for SOAP/WSDL and RESTful Web Services
Author :
Robert Daigneau
Publisher :
Addison-Wesley Professional
Published Date :
Nov 4, 2011
No of Pages :
352
Book Format :
Hardcover
Category :
Systems Analysis & Design
+

Editorial Reviews

No Editorial Reviews Available

Community Reviews

No Community Reviews Available

Press Releases

No Press Release found

Testimonials

No Data available

Market Place