Test Driven Development by Sameer Arora
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Test Driven Development by Sameer Arora

on

  • 1,133 views

 

Statistics

Views

Total Views
1,133
Views on SlideShare
1,133
Embed Views
0

Actions

Likes
0
Downloads
9
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Test Driven Development by Sameer Arora Presentation Transcript

  • 1. Test-Driven Development
    • What is Test-Driven Development?
    • Origins of TDD
    • Clean code with no defects
    • TDD in conjunction with Agile
  • 2. Why TDD ?
    • Much less time needed to debug
    • Code proven to meet requirements
    • Quick feedback at each step
    • Rhythm of Success
  • 3. Mechanics of TDD
    • Start with a failing test
    • Write the simplest code needed to pass the test
    • Remove duplication ( Refactor )
    • Repeat as needed to meet requirements
    RED GREEN REFACTOR
  • 4. What should be tested?
    • Valid inputs
    • Invalid inputs
    • Errors, exceptions, and events
    • Boundary conditions
    • Everything that could possibly break!
  • 5. TDD as a Design Technique
    • Design only what you need to make the test pass
    • Requirements drive the design of code
    • Design evolves with time
  • 6. Fixing Bugs – TDD Style
    • Go after the most painful defect
    • Write a test to expose it
    • Write code needed to fix it
    • Refactor
    • Measure the results
  • 7. TDD Benefits for Business
    • Shorter development cycles
    • Near zero defects
    • Tests become an asset
    • Tests are documentation
    • Competitive advantage!
  • 8.
    • Get some training
    • Start with a small visible project
    • Shoot for 100% test coverage
    • Don’t expect to be perfect
    • Expect to improve dramatically in time
    • Measure the results
    Getting started with TDD
  • 9. Test-Driven Development TDD Demonstration