Articoli correlati a xUnit Test Patterns: Refactoring Test Code

xUnit Test Patterns: Refactoring Test Code - Rilegato

 
9780131495050: xUnit Test Patterns: Refactoring Test Code

Sinossi

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 


Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

L'autore

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.

Product Description

Book by Meszaros Gerard

Le informazioni nella sezione "Su questo libro" possono far riferimento a edizioni diverse di questo titolo.

  • EditoreAddison-Wesley Professional
  • Data di pubblicazione2007
  • ISBN 10 0131495054
  • ISBN 13 9780131495050
  • RilegaturaCopertina rigida
  • LinguaInglese
  • Numero edizione1
  • Numero di pagine883

Compra usato

Condizioni: buono
Connecting readers with great books...
Visualizza questo articolo

EUR 3,32 per la spedizione in U.S.A.

Destinazione, tempi e costi

Risultati della ricerca per xUnit Test Patterns: Refactoring Test Code

Foto dell'editore

Meszaros, Gerard
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: HPB-Red, Dallas, TX, U.S.A.

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Hardcover. Condizione: Good. Connecting readers with great books since 1972! Used textbooks may not include companion materials such as access codes, etc. May have some wear or writing/highlighting. We ship orders daily and Customer Service is our top priority! Codice articolo S_424264963

Contatta il venditore

Compra usato

EUR 46,86
Convertire valuta
Spese di spedizione: EUR 3,32
In U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: Friends of Pima County Public Library, Tucson, AZ, U.S.A.

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

hardcover. Condizione: VeryGood. Hardcover. NOT Ex-library. Very good condition. Slight bumping to hardcover corners. Underlining/highlighting. Until further notice, USPS Priority Mail only reliable option for Hawaii. Proceeds benefit the Pima County Public Library system, which serves Tucson and southern Arizona. Publisher listed as Adison-Wesley, previous owner's name written on top text block. Codice articolo 529WDE000DMV

Contatta il venditore

Compra usato

EUR 50,17
Convertire valuta
Spese di spedizione: EUR 4,78
In U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: Better World Books, Mishawaka, IN, U.S.A.

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: Good. Used book that is in clean, average condition without any missing pages. Codice articolo 5883129-6

Contatta il venditore

Compra usato

EUR 55,56
Convertire valuta
Spese di spedizione: GRATIS
In U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: WorldofBooks, Goring-By-Sea, WS, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Hardback. Condizione: Very Good. The book has been read, but is in excellent condition. Pages are intact and not marred by notes or highlighting. The spine remains undamaged. Codice articolo GOR001965761

Contatta il venditore

Compra usato

EUR 61,65
Convertire valuta
Spese di spedizione: EUR 6,65
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Gerard Meszaros
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: medimops, Berlin, Germania

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: good. Befriedigend/Good: Durchschnittlich erhaltenes Buch bzw. Schutzumschlag mit Gebrauchsspuren, aber vollständigen Seiten. / Describes the average WORN book or dust jacket that has all the pages present. Codice articolo M00131495054-G

Contatta il venditore

Compra usato

EUR 63,14
Convertire valuta
Spese di spedizione: EUR 9,00
Da: Germania a: U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard:
Editore: Pearson Education, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: Studibuch, Stuttgart, Germania

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

hardcover. Condizione: Gut. 944 Seiten; 9780131495050.3 Gewicht in Gramm: 3. Codice articolo 642799

Contatta il venditore

Compra usato

EUR 63,47
Convertire valuta
Spese di spedizione: EUR 61,50
Da: Germania a: U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Rilegato

Da: Mispah books, Redhill, SURRE, Regno Unito

Valutazione del venditore 4 su 5 stelle 4 stelle, Maggiori informazioni sulle valutazioni dei venditori

Hardcover. Condizione: Like New. Like New. book. Codice articolo ERICA77501314950546

Contatta il venditore

Compra usato

EUR 157,69
Convertire valuta
Spese di spedizione: EUR 29,67
Da: Regno Unito a: U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Meszaros, Gerard
Editore: Addison-Wesley, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Nuovo Rilegato

Da: Toscana Books, AUSTIN, TX, U.S.A.

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Hardcover. Condizione: new. Excellent Condition.Excels in customer satisfaction, prompt replies, and quality checks. Codice articolo Scanned0131495054

Contatta il venditore

Compra nuovo

EUR 324,12
Convertire valuta
Spese di spedizione: EUR 3,81
In U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

GERARD MESZAROS
Editore: PEARSON EDUCACION, 2007
ISBN 10: 0131495054 ISBN 13: 9780131495050
Antico o usato Brossura

Da: OM Books, Sevilla, SE, Spagna

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: usado - bueno. Codice articolo 9780131495050

Contatta il venditore

Compra usato

EUR 407,00
Convertire valuta
Spese di spedizione: EUR 58,49
Da: Spagna a: U.S.A.
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello