《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 个评论

要评论图书请先登录注册

你也许想看:

精通Python 3程式設計

《精通Python 3程式設計》

Mark Summerfield.碁峰.2010-11

“”

我的第一本C++书

《我的第一本C++书》

陈良乔.华中科技大学出版社.2011-5-5

“每一个渴望学习C++语言的初学者都希望能够有一本全面的,实用的,同时又是生动有趣的入门书。这本入门书可以告诉这些初学者,...”

Advanced Linux Programming

《Advanced Linux Programming》

CodeSourcery LLC,Mark L. Mitchell,Alex Samuel,Jeffrey Oldham.New Riders.2001

“Advanced Linux Programming is divided into two parts. The fi...”

Scala程序设计

《Scala程序设计》

[美]Venkat Subramaniam.人民邮电出版社.2010-8

“Scala是一种针对 JVM 的通用的编程语言,用来以简明、优雅、类型安全的方式表示常见的编程模式。它无缝集成了面向对象...”

SQL Performance Explained

《SQL Performance Explained》

Markus Winand.Markus Winand.2012

“”

Your UNIX/Linux

《Your UNIX/Linux》

Das, Sumitabha..2012-1

“"Your UNIX/Linux: The Ultimate Guide", written with both use...”

Objective-C 2.0程序设计

《Objective-C 2.0程序设计》

Stephen G. Kochan.机械工业出版社.2009年9月

“本书是Objective-C领域的经典著作,对Objective-C进行了系统而全面的阐述,权威性毋庸置疑。全书共分为四...”

Ruby Under a Microscope

《Ruby Under a Microscope》

Pat Shaughnessy.No Starch Press.2013-11

“How Ruby Works Under the Hood Ruby is a powerful programming...”

安全软件开发之道

《安全软件开发之道》

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

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

MariaDB必知必会

《MariaDB必知必会》

[美]Ben Forta.机械工业出版社.2014-6-1

“《MariaDB必知必会》是国内首本关于MariaDB的中文版书籍,由畅销书作者Ben Forta亲笔撰写,MariaD...”

Growth Hack 這樣做

《Growth Hack 這樣做》

Xdite.PCuSER電腦人文化.2016-5-7

“◎具體教你在預算有限的情況之下,把成長做出來的可行與必要方法! ◎帶動台灣成長駭客話題的專業講師,親授讓產品突破80分的...”

GNU Make项目管理(第三版)

《GNU Make项目管理(第三版)》

(美)Robert Mecklenburg.东南大学出版社.2006-7

“make是unix和其他操作系统上最持久的工具之一。自1970年问世以来,make至今仍旧是大多数程序开发项目的核心工具...”

C语言开发手册

《C语言开发手册》

薛园园..2011-4

“《C语言开发手册(典藏版)》言简意赅、通俗易懂,知识点覆盖全面,详细介绍了C语言的程序设计及最新的C语言编程技术。毋庸置...”

Real World OCaml

《Real World OCaml》

Jason Hickey,Anil Madhavapeddy,Yaron Minsky.O'Reilly Media.2013-3-22

“Learn how to solve day-to-day problems in data processing, n...”

The Go Programming Language

《The Go Programming Language》

Brian W. Kernighan,Alan Donovan.Addison-Wesley Professional.2015-11-23

“”

Big Data

《Big Data》

Nathan Marz,James Warren.Manning Publications.2015-5-10

“Services like social networks, web analytics, and intelligen...”

Appcelerator Titanium Smartphone App Development Cookbook

《Appcelerator Titanium Smartphone App Development Cookbook》

Boydlee Pollentine.Packt Publishing.2011-12

“Appcelerator Titanium Mobile allows developers to realize th...”

Java面向对象编程

《Java面向对象编程》

孙卫琴.电子工业出版社.2006-7

“《Java 面向对象编程》内容由浅入深,紧密结合实际,利用大量典型实例,详细讲解Java面向对象的编程思想、编程语法和设...”

Erlang/OTP并发编程实战

《Erlang/OTP并发编程实战》

[美] Martin Logan,[美] Eric Merritt,[瑞典] Richard Carlsson.人民邮电出版社.2012-7-12

“内容简介: 通过提高CPU时钟频率来制造更快的单核芯片的技术已经到达了极限。多核、并发、分布式等概念和技术也随之走出象牙...”

COM原理与应用

《COM原理与应用》

潘爱民.清华大学出版社.1999-11

“内容简介 本书不仅介绍了C0M的基本原理及其扩展知识,还讲述了MTS及COM+的一些知识。全书分为三 部分,第一部分为C...”