Download xUnit Test Patterns: Refactoring Test Code PDF EPUB
Author: Author
Pages: 833
Size: 920,87 Kb
Publication Date: May 31,2007
Category: Testing
Automated testing is a cornerstone of agile development.“> Topics protected consist of
- Composing better tests–and composing them quicker
- The four phases of automated testing: fixture set up, exercising the machine under check, result verification, and fixture teardown
- Improving check coverage by isolating software program from its environment using Test Stubs and Mock Items
- Designing software for better testability
- Using check “smells” (which includes code smells, behavior smells, and task smells) to spot complications and understand when and how exactly to get rid of them
- Refactoring tests for greater simpleness, robustness, and execution quickness
xUnit Test Patterns may be the definitive guideline to writing automated assessments using xUnit, the most famous unit testing framework used today. Agile trainer and test automation professional Gerard Meszaros describes 68 proven patterns to make tests simpler to write, understand, and keep maintaining.
This book will benefit designers, managers, and testers dealing with any agile or typical development procedure, whether doing test-driven advancement or writing the lab tests last. As the patterns and smells are specially applicable to all associates of the xUnit family members, they also connect with next-generation behavior-driven advancement frameworks such as for example RSpec and JBehave also to other types of test automation equipment, including recorded test equipment and data-driven test equipment such as Match and FitNesse.
Foreword
Preface
Acknowledgments
Intro
Refactoring a Test
Component I: The Narratives
Chapter 1 A SHORT Tour
Chapter 2 Test Smells
Chapter 3 Goals of Test Automation
Chapter 4 Philosophy of Test Automation
Chapter 5 Concepts of Test Automation
Chapter 6 Test Automation Technique
Chapter 7 xUnit Fundamentals
Chapter 8 Transient Fixture Administration
Chapter 9 Persistent Fixture Administration
Chapter 10 Result Verification
Chapter 11 Using Test Doubles
Chapter 12 Organizing Our Assessments
Chapter 13 Examining with Databases
Chapter 14 A Roadmap to Effective Test Automation
Component II: The Test SmellsÂ
Chapter 15 Code Smells
Chapter 16 Behavior Smells
Chapter 17 Task Smells
Component III: The PatternsÂ
Chapter 18 Test Technique Patterns
Chapter 19 xUnit Essentials Patterns
Chapter 20 Fixture Set up Patterns
Chapter 21 Result Verification Patterns
Chapter 22 Fixture Teardown Patterns
Chapter 23 Test Double Patterns
Chapter 24 Test Corporation Patterns
Chapter 25 Data source Patterns
Chapter 26 Design-for-Testability Patterns
Chapter 27 Worth Patterns
Component IV: Appendixes
Appendix A Test Refactorings Â
Appendix B xUnit TerminologyÂ
Appendix C xUnit FAMILY
Appendix D Tools
Appendix Electronic Goals and Concepts
Appendix F Smells, Aliases, and Causes
Appendix G Patterns, Aliases, and Variations
Glossary
ReferencesÂ
IndexÂ
Packed with information, this publication feels as though three books in a single.