[AP]

AntiPatterns: Refactoring Software, Architectures, and Projects in Crisis

Published by: John Wiley (1998)

ISBN: 0-471-19713-0

By: William J. Brown et al.

This book describes common problems on software projects and suggests how to eliminate them by changing the architecture or project organization.

[APLfPW]

A Pattern Language for Pattern Writing

In: Pattern Languages of Program Design 3 [PLoPD3], pp. 529–574.

Published by: Addison-Wesley (1998)

By: Gerard Meszaros and James Doble

As the patterns community has accumulated experience in writing and reviewing patterns and pattern languages, we have begun to develop insight into pattern-writing techniques and approaches that have been observed to be particularly effective at addressing certain recurring problems. This pattern language attempts to capture some of these "best practices" of pattern writing, both by describing them in pattern form and by demonstrating them in action. As such, this pattern language is its own running example.

Further Reading

Full text of this paper is available online in PDF form at http://PatternWritingPatterns.gerardmeszaros.com and in HTML form, complete with a hyperlinked table of contents, at http://hillside.net/patterns/writing/patternwritingpaper.htm .

[ARTRP]

Agile Regression Testing Using Record and Playback

http://AgileRegressionTestPaper.gerardmeszaros.com

By: Gerard Meszaros and Ralph Bohnet

This paper was presented at XP/Agile Universe 2003. It describes how we built a "record and playback" test mechanism into a safety-critical application to make it easier to regression test it as it was ported from OS2 to Windows.

[CJ2EEP]

Core J2EE™ Patterns, Second Edition: Best Practices and Design Strategies

Published by: Prentice Hall (2003)

ISBN: 0-131-42246-4

By: Deepak Alur, Dan Malks, and John Crupi

This book catalogs the core patterns of usage of Enterprise Java Beans (EJB), which are a key part of the Java 2 Enterprise Edition. Examples include Session Facade [CJ2EEP].

[DDD]

Domain-Driven Design: Tackling Complexity in the Heart of Software

Published by: Addison-Wesley (2004)

ISBN: 0-321-12521-5

By: Eric Evans

This book is a good introduction to the process of using a domain model as the heart of a software system.

Readers learn how to use a domain model to make complex development effort more focused and dynamic. A core of best practices and standard patterns provides a common language for the development team.

[ET]

Endo-Testing

http://www.connextra.com/aboutUs/mockobjects.pdf

By: Tim Mackinnon, Steve Freeman, and Philip Craig

This paper, which was presented at XP 2000 in Sardinia, describes the use of Mock Objects (page 544 ) to facilitate testing of the behavior of an object by monitoring its behavior while it is executing.

Unit testing is a fundamental practice in eXtreme Programming, but most nontrivial code is difficult to test in isolation. It is hard to avoid writing test suites that are complex, incomplete, and difficult to maintain and interpret. Using Mock Objects for unit testing improves both domain code and test suites. These objects allow unit tests to be written for everything, simplify test structure, and avoid polluting domain code with testing infrastructure.

[FaT]

Frameworks and Testing

In: Proceedings of XP2002

http://www.agilealliance.org/articles/roockstefanframeworks/file

By: Stefan Roock

This paper is mandatory reading for framework builders. It describes four kinds of automated testing that should accompany a framework, including the ability to test a plug-in's compliance with the framework's protocol and a testing framework that makes it easier to test applications built on the framework.

[FitB]

Fit for Developing Software

Published by: Addison-Wesley (2005)

ISBN: 0-321-26934-9

By: Rick Mugridge and Ward Cunningham

This book is a great introduction to the use of Data-Driven Tests (page 288 ) for preparing customer tests, whether as part of agile or traditional projects. This is what I wrote for inclusion as "advance praise":

Wow! This is the book I wish I had on my desk when I did my first storytest-driven development project. It explains the philosophy behind the Fit framework and a process for using it to interact with the customers to help define the requirements of the project. It makes Fit so easy and approachable that I wrote my first FitNesse tests before I even I finished the book.

Further Reading

More information on Fit can be found at Ward's Web site, http://fit.c2.com .

[GOF]

Design Patterns: Elements of Reusable Object-Oriented Software

Published by: Addison-Wesley (1995)

ISBN: 0-201-63361-2

By: Erich Gamma, Richard Helm, Ralph Johnson, and John M.Vlissides

This book started the patterns movement. In it, the "Gang of Four" describe 23 recurring patterns in object-oriented software systems. Examples include Composite [GOF], Factory Method [GOF], and Facade [GOF]

[HoN]

Hierarchy of Needs

From Wikipedia [Wp]:

Maslow's hierarchy of needs is a theory in psychology that Abraham Maslow proposed in his 1943 paper "A Theory of Human Motivation," which he subsequently extended. His theory contends that as humans meet "basic needs," they seek to satisfy successively "higher needs" that occupy a set hierarchy. . . .

Maslow's hierarchy of needs is often depicted as a pyramid consisting of five levels: The four lower levels are grouped together as deficiency needs associated with physiological needs, while the top level is termed growth needs associated with psychological needs. While our deficiency needs must be met, our being needs are continually shaping our behavior. The basic concept is that the higher needs in this hierarchy only come into focus once all the needs that are lower down in the pyramid are mainly or entirely satisfied. Growth forces create upward movement in the hierarchy, whereas regressive forces push prepotent needs farther down the hierarchy.

[IEAT]

Improving the Effectiveness of Automated Tests

http://FasterTestsPaper.gerardmeszaros.com .

By: Gerard Meszaros, Shaun Smith, and Jennitta Andrea

This paper was presented at XP2001 in Sardinia, Italy. It describes a number of issues that reduce the speed and effectiveness of automated unit tests and suggests ways to address them.

[IXP]

Industrial XP

http://ixp.industriallogic.com .

Industrial XP is a "branded" variant of eXtreme Programming created by Joshua Kerievsky of Industrial Logic. It includes a number of practices required to scale eXtreme Programming to work in larger enterprises, such as "Project Chartering."

[JBrains]

JetBrains

http://www.jetbrains.com .

JetBrains builds software development tools that automate (among other things) refactoring. Its Web site contains a list of all refactorings that the company's various tools support, including some that are not described in [Ref].

[JNI]

JUnit New Instance

http://www.martinfowler.com/bliki/JunitNewInstance.html

This article by Martin Fowler provides the background for why it makes sense for JUnit and many of its ports to create a new instance of the Testcase Class (page 373 ) for each Test Method (page 348 ).

[JuPG]

JUnit Pocket Guide

Published by: O'Reilly

ISBN: 0-596-00743-4

By: Kent Beck

This 80-page, small-format book is an excellent summary of key features of JUnit and best practices for writing tests. Being small enough to fit in a pocket, it doesn't go into much detail, but it does give us an idea of what is possible and where to look for details.

[LSD]

Lean Software Development: An Agile Toolkit

Published by: Addison-Wesley (2003)

ISBN: 0-321-15078-3

By: Mary Poppendieck and Tom Poppendieck

This excellent book describes 22 "thinking tools" that are used to work quickly and effectively in many domains. The authors describe how to apply these tools to software development. If you want to understand why agile development methods work, this book is a must read!

[MAS]

Mocks Aren't Stubs

http://www.martinfowler.com/articles/mocksArentStubs.html

By: Martin Fowler

This article clarifies the difference between Mock Objects (page 544 ) and Test Stubs (page 529 ). It goes on to describe the two fundamentally different approaches to test-driven development engendered by these differences: "classical TDD" versus "mockist TDD."

[MRNO]

Mock Roles, Not Objects

Paper presented at OOPSLA 2004 in Vancouver, British Columbia, Canada.

By: Steve Freeman, Tim Mackinnon, Nat Pryce, and Joe Walnes

This paper describes the use of Mock Objects (page 544 ) to help the developer discover the signatures of the objects on which the class being designed and tested depends. This approach allows the design of the supporting classes to be deferred until after the client classes have been coded and tested. Members can obtain this paper at the ACM portal http://portal.acm.org/ft_gateway.cfm?id=1028765&type=pdf ; nonmembers of the ACM can find it at http://joe.truemesh.com/MockRoles.pdf .

[PEAA]

Patterns of Enterprise Application Architecture

Published by: Addison-Wesley (2003)

ISBN: 0-321-12742-0

By: Martin Fowler

This book is an indispensable handbook of architectural patterns that are applicable to any enterprise application platform. It is a great way to understand how the various approaches to developing large business systems differ.

[PiJV1]

Patterns in Java, Volume 1: A Catalog of Reusable Design Patterns Illustrated with UML

Published by: Wiley Publishing (2002)

ISBN: 0-471-22729-3

By: Mark Grand

A catalog of design patterns commonly used in Java.

Further Reading

http://www.markgrand.com/id1.html

[PLoPD3]

Pattern Languages of Program Design 3

Published by: Addison-Wesley (1998)

ISBN: 0-201-31011-2

Edited by: Robert C. Martin, Dirk Riehle, and Frank Buschmann

A collection of patterns originally workshopped at the Pattern Languages of Programs (PLoP) conferences.

[POSA2]

Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects

Published by: Wiley & Sons (2000)

ISBN: 0-471-60695-2

By: Douglas Schmidt, Michael Stal, Hans Robert, and Frank Buschmann

This book is the second volume in the highly acclaimed Pattern-Oriented Software Architecture (POSA) series. POSA1 was published in 1996; hence this book is referred to as POSA2. It presents 17 interrelated patterns that cover core elements of building concurrent and networked systems: service access and configuration, event handling, synchronization, and concurrency.

[PUT]

Pragmatic Unit Testing

Published by: Pragmatic Bookshelf

ISBN: 0-9745140-2-0 ( In C# with NUnit )

ISBN: 0-9745140-1-2 ( In Java with JUnit )

By: Andy Hunt and Dave Thomas

This book by the "pragmatic programmers" introduces the concept of automated unit testing in a very approachable way. Both versions lower the entry barriers by focusing on the essentials without belaboring the finer points. They also include a very good section on how to determine which tests you need to write for a particular class or method.

[RDb]

Refactoring Databases: Evolutionary Database Design

Published by: Addison-Wesley (2006)

ISBN: 0-321-29353-3

By: Pramodkumar J. Sadalage and Scott W. Ambler

This book is a good introduction to techniques for applying agile principles to development of database-dependent software. It describes techniques for eliminating the need to do "big design up front" on the database. It deserves to be on the bookshelf of every agile developer who needs to work with a database. A summary of the contents can be found at http://www.ambysoft.com/books/refactoringDatabases.html .

[Ref]

Refactoring: Improving the Design of Existing Code

Published by: Addison-Wesley (1999)

ISBN: 0-201-48567-2

By: Martin Fowler et al.

This book offers a good introduction to the process of refactoring software. It introduces a number of "code smells" and suggests ways to refactor the code to eliminate those smells.

[RTC]

Refactoring Test Code

Paper presented at XP2001 in Sardinia, Italy

By: Arie van Deursen, Leon Moonen, Alex van den Bergh, and Gerard Kok

This paper was the first to apply the concept of "code smells" to test code. It described a collection of 12 "test smells" and proposed a set of refactorings that could be used to improve the code. The original paper can be found at http://homepages.cwi.nl/~leon/papers/xp2001/xp2001.pdf .

[RtP]

Refactoring to Patterns

Published by: Addison-Wesley (2005)

ISBN: 0-321-21335-1

By: Joshua Kerievsky

This book deals with the marriage of refactoring (the process of improving the design of existing code) with patterns (the classic solutions to recurring design problems). Refactoring to Patterns suggests that using patterns to improve an existing design is a better approach than using patterns early in a new design, whether the code is years old or minutes old. We can improve designs with patterns by applying sequences of low-level design transformations, known as refactorings.

[SBPP]

Smalltalk Best Practice Patterns

Published by: Prentice Hall (1997)

ISBN: 0-13-476904-X

By: Kent Beck

This book describes low-level programming patterns that are used in good object-oriented software. On the back cover, Martin Fowler wrote:

Kent's Smalltalk style is the standard I aim to emulate in my work. This book does not just set that standard, but also explains why it is the standard. Every Smalltalk developer should have it close at hand.

While Smalltalk is no longer the dominant object-oriented development language, many of the patterns established by Smalltalk programmers have been adopted as the standard way of doing things in the mainstream object-oriented development languages. The patterns in this book remain highly relevant even if the examples are in Smalltalk.

[SCMP]

Software Configuration Management Patterns: Effective Teamwork, Practical Integration

Published by: Addison-Wesley (2003)

ISBN: 0-201-74117-1

By: Steve Berczuk (with Brad Appleton)

This book describes, in pattern form, the how's and why's of using a source code configuration management system to synchronize the activities of multiple developers on a project. The practices described here are equally applicable to agile and traditional projects.

Further Reading

http://www.scmpatterns.com

http://www.scmpatterns.com/book/pattern-summary.html

[SoC]

Secrets of Consulting: A Guide to Giving and Getting Advice Successfully

Published by: Dorset House (1985)

ISBN: 0-932633-01-3

By: Gerald M. Weinberg

Full of Gerry's laws and rules, such as "The Law of Raspberry Jam: The farther you spread it, the thinner it gets."

[TAM]

Test Automation Manifesto

http://TestAutomationManifesto.gerardmeszaros.com

By: Shaun Smith and Gerard Meszaros

This paper was presented at the August 2003 XP/Agile Universe meeting in New Orleans, Louisiana. It describes a number of principles that should be followed to make automated testing using xUnit cost-effective.

[TDD-APG]

Test-Driven Development: A Practical Guide

Published by: Prentice Hall (2004)

ISBN: 0-13-101649-0

By: David Astels

This book provides a good introduction to the process of driving software development with unit tests. Part III of the book is an end-to-end example of using tests to drive a small Java project.

[TDD-BE]

Test-Driven Development: By Example

Published by: Addison-Wesley (2003)

ISBN: 0-321-14653-0

By: Kent Beck

This book provides a good introduction to the process of driving software development with unit tests. In the second part of the book, Kent illustrates TDD by building a Test Automation Framework (page 298 ) in Python. In an approach he likens to "doing brain surgery on yourself," he uses the emerging framework to run the tests he writes for each new capability. It is a very good example of both TDD and bootstrapping.

[TDD.Net]

Test-Driven Development in Microsoft .NET

Published by: Microsoft Press (2004)

ISBN: 0-735-61948-4

By: James W. Newkirk and Alexei A. Vorontsov

This book is a good introduction to the test-driven development process and the tools used to do it in Microsoft's. Net development environment.

[TI]

Test Infected

http://junit.sourceforge.net/doc/testinfected/testing.htm

By: Eric Gamma and Kent Beck

This article was first published in the Java Report issue called "Test Infected—Programmers Love Writing Tests." It has been credited by some as being what led to the meteoric rise in JUnit's popularity. This article is an excellent introduction to the how's and why's of test automation using xUnit.

[TPS]

Toyota Production System: Beyond Large-Scale Production

Published by: Productivity Press (1995)

ISBN: 0-915-2991-4-3

By: Taiichi Ohno

This book, which was written by the father of just-in-time manufacturing, describes how Toyota came up with the system driven by its need to produce a small number of cars while realizing economies of scale. Among the techniques described here are "kanban" and the "five why's."

[UTF]

Unit Test Frameworks: Tools for High-Quality Software Development

Published by: O'Reilly (2004)

ISBN: 0-596-00689-6

By: Paul Hamill

This book is a brief introduction to the most popular implementations of xUnit.

[UTwHCM]

Unit Testing with Hand-Crafted Mocks

http://refactoring.be/articles/mocks/mocks.html

By: Sven Gorts

This paper summarizes and names a number of idioms related to Hand-Built Test Doubles (see Configurable Test Double on page 522 )—specifically, Test Stubs (page 529 ) and Mock Objects (page 544 ). Sven Gorts writes:

Many of the unit tests I wrote over the last couple of years use mock objects in order to test the behavior of a component in isolation of the rest of the system. So far, despite the availability of various mocking frameworks, each of the mock classes I've used has been handwritten. In this article I do some retrospection and try to wrap up the mocking idioms I've found most useful.

[UTwJ]

Unit Testing in Java: How Tests Drive the Code

Published by: Morgan Kaufmann

ISBN: 1-55860-868-0

By: Johannes Link, with contributions by Peter Fröhlich

This book does a very nice job of introducing many of the concepts and techniques of unit testing. It uses intertwined narratives and examples to introduce a wide range of techniques. Unfortunately, due to the format, it can be difficult to find something at a later time.

[VCTP]

The Virtual Clock Test Pattern

http://www.nusco.org/docs/virtual_clock.pdf

By: Paolo Perrotta

This paper describes a common example of a Responder called Virtual Clock [VCTP]. The author uses the Virtual Clock Test Pattern as a Decorator [GOF] for the real system clock, which allows the time to be "frozen" or resumed. One could use a Hard-Coded Test Stub or a Configurable Test Stub just as easily for most tests. Paolo Perrotta summarizes the thrust of his article:

We can have a hard time unit-testing code that depends on the system clock. This paper describes both the problem and a common, reusable solution.

[WEwLC]

Working Effectively with Legacy Code

Published by: Prentice Hall (2005)

ISBN: 0-13-117705-2

By: Michael Feathers

This book describes how to get your legacy software system back under control by retrofitting automated unit tests. A key contribution is a set of "dependency-breaking techniques"—mostly refactorings—that can help you isolate the software for the purpose of automated testing.

[Wp]

Wikipedia

From Wikipedia [Wp]: "Wikipedia is a multilingual, Web-based free content encyclopedia project. The name Wikipedia is a blend of the words 'wiki' and 'encyclopedia.' Wikipedia is written collaboratively by volunteers, allowing most articles to be changed by almost anyone with access to the Web site."

[WWW]

World Wide Web

A reference annotation of [WWW] indicates that the information was found on the World Wide Web. You can use your favorite search engine to find a copy by searching for it by the title.

[XP123]

XP123

http://xp123.com

Web site hosted by: William Wake

A Web site hosting various resources for teams doing eXtreme Programming.

[XPC]

XProgramming.com

http://xprogramming.com

Web site hosted by: Ron Jeffries

A Web site hosting various resources for teams doing eXtreme Programming. One of the better places to look for links to software downloads for unit test automation tools including members of the xUnit family.

[XPE]

eXtreme Programming Explained, Second Edition: Embrace Change

Published by: Addison-Wesley (2005)

ISBN: 0-321-27865-8

By: Kent Beck

This book kick-started the eXtreme Programming movement. The first edition (0-201-61641-6) described a recipe consisting of 12 practices backed by principles and values. The second edition focuses more on the values and principles. It breaks the practices into a primary set and a corollary set; the latter set should be attempted only after the primary practices are mastered. Among the practices both editions describe are pair programming and test-driven development.