Your SlideShare is downloading. ×
  • Like
Test Driven Development
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Test Driven Development



Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1.
    • By Poonam Bhasin
    • 07030244011
  • 2.
    • What is Testing
    • What is Test Driven Development
    • Things to Test
    • Advantages of TDD
    • Testing via xUnit Framework
    • 2 Simple rules for TDD
  • 3. Design Implement Test
  • 4. Design Test Test Implement
  • 5.  
  • 6.
    • Valid Inputs
    • Invalid Inputs
    • Errors, exceptions, and events
    • Boundary conditions
    • Everything that could possibly break!
  • 7.
    • Much less debug time : Programmers using pure TDD on new projects report they only rarely feel the need to invoke a┬ádebugger. Eliminating defects early in the process usually avoids lengthy and tedious debugging later in the project.
    • Helps build Software better and faster
        • Does not only offer simple validation of correctness
        • Also drives the design of the program
    • Forces the programmer to focus more on the interface than on implementation : By focusing on the test cases first, one must imagine how the functionality will be used by clients
    • Limit the number of defects in the code : The early and frequent nature of the tests helps to catch defects early in the development cycle, preventing them from becoming endemic and expensive problems
    • TDD leads to more modularized, flexible, and extensible code : Since the methodology requires that the developers think of the software in terms of small units that can be written and tested independently and integrated together later. This leads to smaller, more focused classes, looser coupling, and cleaner interfaces.
  • 8.  
  • 9.
    • Write new business code only when an automated test has failed
    • Eliminate any duplication that you find
    • To Implement the rules
      • design organically, with the running code providing feedback between decisions
      • write your own tests
      • development environment must provide rapid response to small changes
      • designs must consist of highly cohesive, loosely coupled components (e.g. your design is highly normalized) to make testing easier
  • 10.
    • Thank you