Approval Tests

A picture's worth a 1000 tests.
Unit testing asserts can be difficult to use. Approval tests simplify this by taking a snapshot of the results, and confirming that they have not changed.

In normal unit testing, you say ‘assertEquals(5, person.getAge())’. Approvals allow you to do this when the thing that you want to assert is no longer a primitive but a complex object. For example, you can say, ‘Approvals.approve(person).’


Watch the 5 Minute Introduction Video

(sorry preview not available )
java - eclipse - strings

Working with Arrays
java - eclipse - arrays

Test Driving GUI's
C# - Visual Studio - Code Rush - Windows Forms

Locking Down Legacy Code
java - eclipse - permutations

Test First Kata with Approvals

You may also want to see some coding kata of Test First with approvals. Here are the screen casts
LCD Numbers Kata

Chopping Kata

Prime Factors Kata