《xUnit Test Patterns》

《xUnit Test Patterns》 《xUnit Test Patterns》

  • 书名:《xUnit Test Patterns》:Refactoring Test Code
  • 分类:编程
  • 作者:Gerard Meszaros
  • 出版社:Addison-Wesley
  • 出版年:2007-05-31
  • 售价:USD 59.99
  • 装订:Hardcover
  • 页码:944

《xUnit Test Patterns》 内容介绍:

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


微信扫一扫关注公众号

0 个评论

要评论图书请先登录注册

你也许想看:

Learning Apache Kafka, Second Edition

《Learning Apache Kafka, Second Edition》

Nishant Garg.Packt Publishing - ebooks Account.2015-2-16

“”

Clojure数据分析秘笈

《Clojure数据分析秘笈》

(美)Eric Rochester.机械工业出版社.2014-8

“【编辑推荐】 国内首部系统介绍Clojure数据分析技术的著作,内容全面而深入,为高效利用Clojure进行数据分析提供...”

解析极限编程

《解析极限编程》

[美] Kent Beck.人民邮电出版社.2002-6

“极限编程(XP)是一种经历过实践考验的轻量级软件开发方法学。《解析极限编程》是XP宣言,也是第一本有关XP的图书。 全书...”

Head First Object-Oriented Analysis and Design

《Head First Object-Oriented Analysis and Design》

Brett D. McLaughlin,Gary Pollice,Dave West.O'Reilly Media.2006-12-4

“"Head First Object Oriented Analysis and Design" is a refres...”

处理器虚拟化技术

《处理器虚拟化技术》

邓志.电子工业出版社.2014-5-1

“《处理器虚拟化技术》针对在Intel处理器端的虚拟化技术(Intel Virtualization Technology...”

More Exceptional C++中文版

《More Exceptional C++中文版》

[美] Herb Sutter.华中科技大学出版社.2002-9

“More Exceptional C++是Exceptional C++的续篇。根据多年程序开发的实践经验、Herb S...”

Building Web Apps for Google TV

《Building Web Apps for Google TV》

Ferrate, Andres; Surya, Amanda; Lee, Daniels..2011-7

“By integrating the Web with traditional TV, Google TV offers...”

SharePoint 2013 开发入门经典

《SharePoint 2013 开发入门经典》

Steve Fox,Chris Johnson,Donovan Follette.清华大学出版社.2014-9-1

“作为功能丰富的开发平台,SharePoint 2013相对以往版本有更进一步的增强。对于初学者,本书是开始体验Share...”

iOS 9 by Tutorials

《iOS 9 by Tutorials》

Aaron Douglas, Caroline Begbie, Chris Wagner, Derek Selander, Evan Dekhayser, James Frost, Jawwad Ahmad, Pietro Rea, Soheil Azarpour, Vincent Ngo.Razeware LLC.2015-10-7

“Learn the New iOS 9 APIs! iOS 9 introduces a ton of great ne...”

OpenGL 4.0 Shading Language Cookbook

《OpenGL 4.0 Shading Language Cookbook》

David Wolff.Packt Publishing.2011-7-9

“”

500 Lines or Less

《500 Lines or Less》

Amy Brown,Michael DiBernardo..2016-6-28

“This book provides you with the chance to study how 26 exper...”

爱上Python

《爱上Python》

[新加坡] Jamie Chan.人民邮电出版社.2016-6

“本书将复杂的编程概念分解成简单的步骤,简单易懂。作者通过多年的教学经验精心挑选出了有特点的例子,手把手地实例教学。这本书...”

OS X and iOS Kernel Programming

《OS X and iOS Kernel Programming》

Ole Henry Halvorsen,Douglas Clarke.Apress.2011-12-16

“OS X and iOS Kernel Programming combines essential operating...”

C#高级编程(第4版)

《C#高级编程(第4版)》

Christian Nagel Bill Evjen Jay Glynn等.清华大学出版社.2006-10

“C#经典名著!也是Wrox红皮书中最畅销的品种之一,从第一版开始就名满天下;其第3版被中华读书报、CSDN、《程序员》等...”

安全软件开发之道

《安全软件开发之道》

[美]John Viega,Gary Mcgraw.机械工业出版社.2014-3-20

“本书被誉为安全技术领域的“黄帝内经”,由安全技术大师亲力打造,畅销全球,数位安全技术专家联袂推荐。综合论述如何在软件开发...”

Python编程:从入门到实践

《Python编程:从入门到实践》

[美] Eric Matthes.人民邮电出版社.2016-7

“本书是一本针对所有层次的Python 读者而作的Python 入门书。全书分两部分:第一部分介绍用Python 编程所必...”

Head First Programming

《Head First Programming》

David Griffiths,Paul Barry.O'Reilly Media.2009-12-4

“Looking for a reliable way to learn how to program on your o...”

Ext JS权威指南

《Ext JS权威指南》

黄灯桥.机械工业出版社.2012-6-1

“Web应用的开发正随着HTML 5与CSS 3标准的不断成熟而进入一个新的时代,JavaScript框架之间的竞争也随着...”

Django Design Patterns and Best Practices

《Django Design Patterns and Best Practices》

Arun Ravindran.Packt Publishing - ebooks Account.2015-3-26

“”

Haskell Financial Data Modeling and Predictive Analytics

《Haskell Financial Data Modeling and Predictive Analytics》

Pavel Ryzhov.Packt Publishing.2013-10-25

“Get an in-depth analysis of financial time series from the p...”