Vous voulez voir cette page en français ? Cliquez ici.

 

or
Sign in to turn on 1-Click ordering.
 
 
More Buying Choices
21 used & new from CDN$ 45.35

Have one to sell? Sell yours here
 
   
xUnit Test Patterns: Refactoring Test Code
 
 

xUnit Test Patterns: Refactoring Test Code (Hardcover)

by Gerard Meszaros (Author) "There are a lot of principles, patterns, and smells in this book-and even more patterns that couldn't fit into the book ..." (more)
5.0 out of 5 stars  See all reviews (2 customer reviews)
List Price: CDN$ 71.99
Price: CDN$ 45.35 & this item ships for FREE with Super Saver Shipping. Details
You Save: CDN$ 26.64 (37%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.ca. Gift-wrap available.

Ordering for Christmas? To ensure delivery by December 24 to Toronto, Ottawa, or Montreal, choose FREE Super Saver Shipping at checkout. Read more about holiday shipping.

15 new from CDN$ 45.35 6 used from CDN$ 70.02

Frequently Bought Together

xUnit Test Patterns: Refactoring Test Code + Test Driven Development: By Example + Refactoring: Improving the Design of Existing Code
Total List Price: CDN$ 209.97
Price For All Three: CDN$ 132.27

Show availability and shipping details

  • This item: xUnit Test Patterns: Refactoring Test Code by Gerard Meszaros

    In Stock.
    Ships from and sold by Amazon.ca.
    This item ships for FREE with Super Saver Shipping. Details

  • Test Driven Development: By Example by Kent Beck

    In Stock.
    Ships from and sold by Amazon.ca.
    Eligible for FREE Super Saver Shipping on orders over CDN$ 39. Details

  • Refactoring: Improving the Design of Existing Code by Martin Fowler

    In Stock.
    Ships from and sold by Amazon.ca.
    This item ships for FREE with Super Saver Shipping. Details


Customers Who Bought This Item Also Bought

Test Driven Development: By Example

Test Driven Development: By Example

by Kent Beck
4.3 out of 5 stars (17)  CDN$ 37.79
Continuous Integration: Improving Software Quality and Reducing Risk

Continuous Integration: Improving Software Quality and Reducing Risk

by Paul Duvall
3.5 out of 5 stars (2)  CDN$ 37.79
Implementation Patterns

Implementation Patterns

by Kent Beck
CDN$ 34.01
Refactoring: Improving the Design of Existing Code

Refactoring: Improving the Design of Existing Code

by Martin Fowler
4.6 out of 5 stars (95)  CDN$ 49.13
Working Effectively with Legacy Code

Working Effectively with Legacy Code

by Michael Feathers
5.0 out of 5 stars (1)  CDN$ 45.35
Explore similar items

Product Details


Product Description

Product Description

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 




About the Author

Gerard Meszaros is Chief Scientist and Senior Consultant at ClearStream Consulting, a Calgary-based consultancy specializing in agile development. He has more than a decade of experience with automated unit testing frameworks and is a leading expert in test automation patterns, refactoring of software and tests, and design for testability.

Inside This Book (Learn More)
First Sentence
There are a lot of principles, patterns, and smells in this book-and even more patterns that couldn't fit into the book. Read the first page
Browse Sample Pages
Front Cover | Copyright | Table of Contents | Excerpt | Index | Back Cover
Search inside this book:

Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
 
(2)
(1)

Your tags: Add your first tag
 

What do customers ultimately buy after viewing this item?

xUnit Test Patterns: Refactoring Test Code
71% buy the item featured on this page:
xUnit Test Patterns: Refactoring Test Code 5.0 out of 5 stars (2)
CDN$ 45.35
Test Driven Development: By Example
11% buy
Test Driven Development: By Example 4.3 out of 5 stars (17)
CDN$ 37.79
Implementation Patterns
6% buy
Implementation Patterns
CDN$ 34.01
Refactoring: Improving the Design of Existing Code
6% buy
Refactoring: Improving the Design of Existing Code 4.6 out of 5 stars (95)
CDN$ 49.13

 

Customer Reviews

2 Reviews
5 star:
 (2)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
5.0 out of 5 stars (2 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most helpful customer reviews

 
5.0 out of 5 stars Inspired to Test, Dec 23 2007
By C. Kilgore (Atlanta, GA USA) - See all my reviews
(REAL NAME)   
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.
Was this review helpful to you? Yes No (Report this)



 
5.0 out of 5 stars Comprehensive, Aug 3 2007
By Nicholas Roeder - See all my reviews
(TOP 500 REVIEWER)    (REAL NAME)   
This book is advertised as "three books in one" which I originally figured was just the usual publisher's marketing. But it really delivers in all three areas: introductory narratives, discussion of test code smells, and of course, the testing patterns themselves.

Even if you have done automated unit testing using any of the xUnit frameworks in the past, it will be useful to read the introductory narratives. Meszaros accomplishes the difficult task of clearly describing all of the aspects of xUnit including fixture management. I say "difficult", because it can be hard to document something that is so familiar that you do every day. Even though most of this content is not new, it provides clear terminology, which is valuable in making the rest of the book understandable.

Mezaros writes in a clear and highly detailed style and the book appears suprisingly free of typos and grammatical errors, which is a nice change for technical books.

Don't be scared by the size of the book. There isn't anything unnecessary here, and even the glossary is comprehensive and useful.

Highly recommended!
Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
Only search this product's reviews



Listmania!


Look for similar items by category


Look for similar items by subject


Feedback


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.