Test driven development (tdd)? , JAVA Programming

Test Driven Development (TDD)

TDD process gives your confidence in the delivered code for the following things.

1. TDD can remove duplication of code and also disciplines the developer to intend in his mind on giving what is absolutely necessary. That means the system you create only does what it is supposed to do because you first write test cases for the business needs and then write the needed functionality to satisfy the test cases.

2. These unit tests can be repeatedly play to alert the development team immediately if someone divides any existing functionality. All the unit tests may be play overnight as part of the deployment process and test results may be emailed to the development process team.

 

3. TDD ensures that message becomes thoroughly unit tested. It is not right to write thorough unit tests if you leave it to the end due to lack of motivation, deadline pressures etc.

4. TDD complements design by contract methodology and receives the developer thinking in terms of post and pre conditions as well as exceptions.

5. When using TDD, tests drive your message and to some extent they assist you in validating your design at an earlier stage.

6. TDD also gives you refactor your message with confidence that if it breaks the business program it receives picked up when you run your unit tests next time.

7. TDD creates design to interface not implementation design concept. E.g: when your code has to take input from a device or an external source which is not allow at the time of writing your unit tests,  you need to make an interface, which takes input from another device in order for your tests to work.

 

Posted Date: 7/26/2012 5:29:33 AM | Location : United States







Related Discussions:- Test driven development (tdd)? , Assignment Help, Ask Question on Test driven development (tdd)? , Get Answer, Expert's Help, Test driven development (tdd)? Discussions

Write discussion on Test driven development (tdd)?
Your posts are moderated
Related Questions
How memory allocated for a object

A target is the class that is being advised. The class can be a third party class or your own class to which you require to add your own custom behavior. By using the concepts of A

You can declare a variable by the var statement such as: var strname = some value You can also declare a variable with simply assigning a value to the variable. Although, if

A Padovan string P(n) for a natural number n is defined as: P(0)=''X'' P(1)=''Y'' P(2)=''Z'' for a string characters ''X'',''Y'',''Z'' only,and given value of n,write a program th

Draw a 5 inch square on the screen using pseudocode

Q. Write short on the method over ridding method in java? Ans. Method over ridding and dynamic binding: We have seen that a method in a super class is inherited by its subclass

What is Resuscitation Trolley explain their features? A proper resuscitation kit is mandatory for the ICU. In addition to trolleys that can be moved around the ICU there should

Java Programming 1. Write a program in Java to find the highest of any five numbers. How do you compile and execute this Java program? 2. Write a program to explain the Exce

A specialized subclass of ActionForm that permits the creation of form beans with dynamic sets of properties (configured in configuration file), without requiring the developer to

What is the difference between inner class and nested class? When a class is explained within a scope od another class, then it becomes inner class. If the access modifier o