slide1 n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
(Almost) Frictionless Testing: Removing the Pain from TDD PowerPoint Presentation
Download Presentation
(Almost) Frictionless Testing: Removing the Pain from TDD

Loading in 2 Seconds...

play fullscreen
1 / 9

(Almost) Frictionless Testing: Removing the Pain from TDD - PowerPoint PPT Presentation


  • 96 Views
  • Uploaded on

(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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about '(Almost) Frictionless Testing: Removing the Pain from TDD' - hachi


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
slide1

(Almost) Frictionless Testing:

Removing the Pain from TDD

Erik Peterson

http://erikbase.wordpress.com

cerikpete@gmail.com

slide2

Why Does TDD Fail?

Confusing Record/Playback model

Setting up a lot of context

Difficulty setting up/tearing down databases

slide3

Specifications

aka Unit Tests

slide4

The Record/Playback Model

  • Solved by the AAA Syntax:
  • Arrange
  • Act
  • Assert
slide5

Generating Mocks

Solved using reflection

Can be retrieved from a dictionary

slide6

Mapping Tests

aka Integration Tests

slide7

My Requirements for an Integration Test

1. The ability to pass sample data into a method so that you can write tests against it

slide8

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

slide9

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