News - 3/01/2013 - Listen to the 30 minute Podcast on Hanselminutes
News - 1/02/2013 - Listen to the 43 minute Podcast on WatirPodcast
News - 7/21/2011 - Listen to the 1 Hour Podcast on Herding Code
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.verify(person).’
| Step 1: Create your scenario | Step 2: Write that scenario in English | Step 3: Translate english to Code |
|
|
|
| Step 4: Create Code so it works | Step 5: Run your test for feedback while you code | Step 6: Approve result so it continues to work |
|
|
|
| Step 7: Change the requirement | Step 8: See the new solution | Step 9: Re-approve so it continues to work |
|
|
|
Watch some General Videos
Watch the Getting started Using ApprovalTests in .Net Series
Read the blog
Read the F.A.Q
about us