Your SlideShare is downloading. ×
0
<ul><li>By Poonam Bhasin </li></ul><ul><li>07030244011 </li></ul>
<ul><li>What is Testing </li></ul><ul><li>What is Test Driven Development </li></ul><ul><li>Things to Test </li></ul><ul><...
Design Implement Test
Design Test Test Implement
 
<ul><li>Valid Inputs </li></ul><ul><li>Invalid Inputs </li></ul><ul><li>Errors, exceptions, and events </li></ul><ul><li>B...
<ul><li>Much less debug time  : Programmers using pure TDD on new projects report they only rarely feel the need to invoke...
 
<ul><li>Write new business code only when an automated test has failed  </li></ul><ul><li>Eliminate any duplication that y...
<ul><li>Thank you </li></ul>
Upcoming SlideShare
Loading in...5
×

Test Driven Development

253

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
253
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Test Driven Development"

  1. 1. <ul><li>By Poonam Bhasin </li></ul><ul><li>07030244011 </li></ul>
  2. 2. <ul><li>What is Testing </li></ul><ul><li>What is Test Driven Development </li></ul><ul><li>Things to Test </li></ul><ul><li>Advantages of TDD </li></ul><ul><li>Testing via xUnit Framework </li></ul><ul><li>2 Simple rules for TDD </li></ul>
  3. 3. Design Implement Test
  4. 4. Design Test Test Implement
  5. 6. <ul><li>Valid Inputs </li></ul><ul><li>Invalid Inputs </li></ul><ul><li>Errors, exceptions, and events </li></ul><ul><li>Boundary conditions </li></ul><ul><li>Everything that could possibly break! </li></ul>
  6. 7. <ul><li>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. </li></ul><ul><li>Helps build Software better and faster </li></ul><ul><ul><ul><li>Does not only offer simple validation of correctness </li></ul></ul></ul><ul><ul><ul><li>Also drives the design of the program </li></ul></ul></ul><ul><li>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 </li></ul><ul><li>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 </li></ul><ul><li>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. </li></ul>
  7. 9. <ul><li>Write new business code only when an automated test has failed </li></ul><ul><li>Eliminate any duplication that you find </li></ul><ul><li>To Implement the rules </li></ul><ul><ul><li>design organically, with the running code providing feedback between decisions </li></ul></ul><ul><ul><li>write your own tests </li></ul></ul><ul><ul><li>development environment must provide rapid response to small changes </li></ul></ul><ul><ul><li>designs must consist of highly cohesive, loosely coupled components (e.g. your design is highly normalized) to make testing easier </li></ul></ul>
  8. 10. <ul><li>Thank you </li></ul>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×