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

3,94 valoración promedio
( 435 valoraciones por GoodReads )
 
9780131495050: xUnit Test Patterns: Refactoring Test Code (Addison Wesley Signature)
From the Publisher:

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.

"Sobre este título" puede pertenecer a otra edición de este libro.

Los mejores resultados en AbeBooks

1.

Meszaros, Gerard
Editorial: Addison-Wesley (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 1
Librería
Buyback Express
(Alton, IL, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley, 2007. Hardcover. Estado de conservación: New. BRAND NEW BOOK!! SHIPS WITHIN 24 HOURS! Tracking Provided. DHL processing & USPS delivery for an average of 3-5 Day Standard & 2-3 Day Expedited! FREE INSURANCE! Fast & Personal Support! Careful Packaging. No Hassle, Full Refund Return Policy!. Nº de ref. de la librería mon0000553386

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 58,41
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 3,72
A Estados Unidos de America
Destinos, gastos y plazos de envío

2.

Meszaros, Gerard
Editorial: Prentice Hall
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Cantidad: > 20
Librería
INDOO
(Avenel, NJ, Estados Unidos de America)
Valoración
[?]

Descripción Prentice Hall. Estado de conservación: New. Brand New. Nº de ref. de la librería 0131495054

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 59,18
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 3,28
A Estados Unidos de America
Destinos, gastos y plazos de envío

3.

Meszaros, Gerard
Editorial: Addison-Wesley (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 1
Librería
Book Deals
(Lewiston, NY, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley, 2007. Estado de conservación: New. Brand New, Unread Copy in Perfect Condition. A+ Customer Service! Summary: Visual Summary of the Pattern Language xviiForeword xixPreface xxiAcknowledgments xxviIntroduction xxixRefactoring a Test xlvPART I: The Narratives 1 Chapter 1 A Brief Tour 3About This Chapter 3The Simplest Test Automation Strategy That Could Possibly Work 3Development Process 4Customer Tests 5Unit Tests 6Design for Testability 7Test Organization 7What's Next? 8 Chapter 2 Test Smells 9About This Chapter 9An Introduction to Test Smells 9What's a Test Smell? 10Kinds of Test Smells 10What to Do about Smells? 11A Catalog of Smells 12The Project Smells 12The Behavior Smells 13The Code Smells 16What's Next? 17 Chapter 3 Goals of Test Automation 19About This Chapter 19Why Test? 19Economics of Test Automation 20Goals of Test Automation 21Tests Should Help Us Improve Quality 22Tests Should Help Us Understand the SUT 23Tests Should Reduce (and Not Introduce) Risk 23Tests Should Be Easy to Run 25Tests Should Be Easy to Write and Maintain 27Tests Should Require Minimal Maintenance asthe System Evolves Around Them 29What's Next? 29 Chapter 4 Philosophy of Test Automation 31About This Chapter 31Why Is Philosophy Important? 31Some Philosophical Differences 32Test First or Last? 32Tests or Examples? 33Test-by-Test or Test All-at-Once? 33Outside-In or Inside-Out? 34State or Behavior Verification? 36Fixture Design Upfront or Test-by-Test? 36When Philosophies Differ 37My Philosophy 37What's Next? 37 Chapter 5 Principles of Test Automation 39About This Chapter 39The Principles 39What's Next? 48 Chapter 6 Test Automation Strategy 49About This Chapter 49What's Strategic? 49Which Kinds of Tests Should We Automate? 50Per-Functionality Tests 50Cross-Functional Tests 52Which Tools Do We Use to Automate Which Tests? 53Test Automation Ways and Means 54Introducing xUnit 56The xUnit Sweet Spot 58Which Test Fixture Strategy Do We Use? 58What Is a Fixture? 59Major Fixture Strategies 60Transient Fresh Fixtures 61Persistent Fresh Fixtures 62Shared Fixture Strategies 63How Do We Ensure Testability? 65Test Last--At Your Peril 65Design for Testability--Upfront 65Test-Driven Testability 66Control Points and Observation Points 66Interaction Styles and Testability Patterns 67Divide and Test 71What's Next? 73 Chapter 7 xUnit Basics 75About This Chapter 75An Introduction to xUnit 75Common Features 76The Bare Minimum 76Defining Tests 76What's a Fixture? 78Defining Suites of Tests 78Running Tests 79Test Results 79Under the xUnit Covers 81Test Commands 82Test Suite Objects 82xUnit in the Procedural World 82What's Next? 83 Chapter 8 Transient Fixture Management 85About This Chapter 85Test Fixture Terminology 86What Is a Fixture? 86What Is a Fresh Fixture? 87What Is a Transient Fresh Fixture? 87Building Fresh Fixtures 88In-line Fixture Setup 88Delegated Fixture Setup 89Implicit Fixture Setup 91Hybrid Fixture Setup 93Tearing Down Transient Fresh Fixtures 93What's Next? 94 Chapter 9 Persistent Fixture Management 95About This Chapter 95Managing Persistent Fresh Fixtures 95What Makes Fixtures Persistent? 95Issues Caused by Persistent Fresh Fixtures 96Tearing Down Persistent Fresh Fixtures 97Avoiding the Need for Teardown 100Dealing with Slow Tests. Nº de ref. de la librería ABE_book_new_0131495054

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 77,40
Convertir moneda

Añadir al carrito

Gastos de envío: GRATIS
A Estados Unidos de America
Destinos, gastos y plazos de envío

4.

Meszaros, Gerard
Editorial: Addison-Wesley
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 3
Librería
BarristerBooks
(Lawrence, KS, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley. Hardcover. Estado de conservación: New. 0131495054 BRAND NEW W/FAST SHIPPING! This item is: xUnit Test Patterns: Refactoring Test Code, 1st Ed., 2007, by Meszaros, Gerard; FORMAT: Hardcover; ISBN: 9780131495050. Choose Expedited for fastest shipping! Our 98%+ rating proves our commitment! We cannot ship to PO Boxes/APO address. To avoid ordering the wrong item, please check your item's ISBN number!. Nº de ref. de la librería P9780131495050

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 77,42
Convertir moneda

Añadir al carrito

Gastos de envío: GRATIS
A Estados Unidos de America
Destinos, gastos y plazos de envío

5.

Meszaros, Gerard
Editorial: Addison-Wesley (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 1
Librería
Irish Booksellers
(Rumford, ME, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley, 2007. Hardcover. Estado de conservación: New. book. Nº de ref. de la librería 0131495054

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 78,71
Convertir moneda

Añadir al carrito

Gastos de envío: GRATIS
A Estados Unidos de America
Destinos, gastos y plazos de envío

6.

Meszaros, Gerard
Editorial: Addison-Wesley (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 1
Librería
Ergodebooks
(RICHMOND, TX, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley, 2007. Hardcover. Estado de conservación: New. Nº de ref. de la librería DADAX0131495054

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 79,98
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 3,74
A Estados Unidos de America
Destinos, gastos y plazos de envío

7.

Meszaros, Gerard
Editorial: Pearson Education (US), United States (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 10
Librería
The Book Depository US
(London, Reino Unido)
Valoración
[?]

Descripción Pearson Education (US), United States, 2007. Hardback. Estado de conservación: New. 236 x 183 mm. Language: English . Brand New Book. 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. Nº de ref. de la librería BZV9780131495050

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 87,33
Convertir moneda

Añadir al carrito

Gastos de envío: GRATIS
De Reino Unido a Estados Unidos de America
Destinos, gastos y plazos de envío

8.

Meszaros, Gerard
Editorial: Prentice Hall (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: 1
Librería
Revaluation Books
(Exeter, Reino Unido)
Valoración
[?]

Descripción Prentice Hall, 2007. Hardcover. Estado de conservación: Brand New. new title edition. 833 pages. 9.50x7.25x2.00 inches. In Stock. Nº de ref. de la librería zk0131495054

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 83,42
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 7,08
De Reino Unido a Estados Unidos de America
Destinos, gastos y plazos de envío

9.

Meszaros, Gerard
Editorial: Addison-Wesley (2007)
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Tapa dura Cantidad: > 20
Librería
Palexbooks
(Sanford, NC, Estados Unidos de America)
Valoración
[?]

Descripción Addison-Wesley, 2007. Estado de conservación: New. Brand new! Please provide a physical shipping address. Nº de ref. de la librería 9780131495050

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 94,82
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 2,81
A Estados Unidos de America
Destinos, gastos y plazos de envío

10.

Meszaros, Gerard
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuevos Cantidad: 1
Librería
Castle Rock
(Pittsford, NY, Estados Unidos de America)
Valoración
[?]

Descripción Estado de conservación: Brand New. Book Condition: Brand New. Nº de ref. de la librería 97801314950501.0

Más información sobre esta librería | Hacer una pregunta a la librería

Comprar nuevo
EUR 104,11
Convertir moneda

Añadir al carrito

Gastos de envío: EUR 3,74
A Estados Unidos de America
Destinos, gastos y plazos de envío

Existen otras copia(s) de este libro

Ver todos los resultados de su búsqueda