Download presentation
Presentation is loading. Please wait.
1
(Almost) Frictionless Testing: Removing the Pain from TDD Erik Peterson http://erikbase.wordpress.com cerikpete@gmail.com
2
Why Does TDD Fail? Confusing Record/Playback model Setting up a lot of context Difficulty setting up/tearing down databases
3
Specifications aka Unit Tests
4
The Record/Playback Model Solved by the AAA Syntax: Arrange Act Assert
5
Generating Mocks Solved using reflection Can be retrieved from a dictionary
6
Mapping Tests aka Integration Tests
7
My Requirements for an Integration Test 1. The ability to pass sample data into a method so that you can write tests against it
8
My Requirements for an Integration Test 2. The ability to allow data you don’t care about be dynamically generated behind the scenes so that you don’t have to worry about it
9
My Requirements for an Integration Test 3. The data generated by the tests should be easy to clean up so that the database is left in a clean state
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.