1 / 9

(Almost) Frictionless Testing: Removing the Pain from TDD

(Almost) Frictionless Testing: Removing the Pain from TDD. Erik Peterson http:// erikbase.wordpress.com cerikpete@gmail.com. Why Does TDD Fail?. Confusing Record/Playback model Setting up a lot of context Difficulty setting up/tearing down databases. Specifications aka Unit Tests.

hachi
Télécharger la présentation

(Almost) Frictionless Testing: Removing the Pain from TDD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related