Tag Archives: tdd

3A – Arrange, Act, Assert

Some unit tests are focused, other are like a run-on sentence. How can we create tests that are focused and communicate well? What's a good structure for a unit test? 3A: Arrange, Act, Assert We want to test the behavior … Continue reading

Tagged , , , ,

Tests from a Hat

How does the order of tests affect the design of software? A game to explore that idea. Continue reading

Tagged , , , ,

Review – Growing Object-Oriented Software, Guided by Tests

Growing Object-Oriented Software, Guided by Tests, by Steve Freeman and Nat Pryce, ISBN 0-321-50362-7   Freeman and Pryce explain Test-Driven Development through an extended example. (They have a somewhat different perspective than I do, with much heavier use of mock objects. … Continue reading

Tagged , , , ,

Sudoku Solver

Sudoku is a fairly well-known type of puzzle. Solving it turns out to be easier than I expected, but a somewhat odd example of test-driven development. Continue reading

Tagged , ,

Sufficient Completeness and Testing

One way to determine “sufficient completeness” suggests considering all sequences of calls that can take an object to a state. This enumeration suggests important test cases. Continue reading

Tagged , , ,

A Comparison Algorithm for TDD

Can you test-drive an algorithm? Continue reading

Tagged , , ,

Semantics of Fit: A Path Toward New Tools

Fit’s standard interpretation tells us how well a program does against a set of test cases. We can design new semantics for reporters (that give us interesting information) and for rewriters (that make interesting transformations of our tests). Continue reading

Tagged , , , ,

JUnit 4 for JDK 1.5

JUnit 4 uses attributes. Continue reading

Tagged ,

Review – JUnit Recipes

JUnit Recipes, JB Rainsberger. Manning, 2004. If test-driven development makes sense, but you need help in particular areas, this book provides it. JB covers everything from basic object testing to patterns, databases, XML, servlets, and more J2EE. Well-written and highly … Continue reading

Tagged , , ,

Procedural and Declarative Tests

Procedural tests focus on a series of steps; declarative tests work from the input and states. Procedural tests are natural to write, but consider whether a declarative test expresses your intent more concisely and clearly. Continue reading

Tagged , , ,

Review – Extreme Programming Explained, 2/e

Extreme Programming Explained: Embrace Change, 2/e, by Kent Beck and Cynthia Andres. Addison-Wesley Professional, 2004. ISBN 0321278658.Kent Beck’s new introduction to the practices and philosophy of XP. See an extended summary.(Reviewed Feb., ’05)

Tagged , , , , , , ,

Overview of “Extreme Programming Explained, 2/e”

A review of the new version of Extreme Programming Explained. Continue reading

Tagged , , , , ,

Review – JUnit Pocket Guide

JUnit Pocket Guide, Kent Beck. O’Reilly, 2004.This is a quick intro to using JUnit for testing. It’s a quick read. Along with reference information about JUnit, it’s got a quick version of the philosophy behind Test-Driven Development. (Reviewed December, ’04)

Tagged , , ,

Test-Driven Development Workout

Test-Driven Development Workout is a tutorial presented by Bill Wake and Steve Metsker at OOPSLA '04. PowerPoint

Tagged , , ,

Refactorings Require New Tests

Refactorings are often described as transformations that preserve semantics, but they still may require new tests. Continue reading

Tagged , ,