A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Unit Testing

unit Testing

What is Unit Testing

  • UNIT testing is a part of White Box testing.

  • In this software testing individual units/ components of a software are tested.

  • Unit Testing is done during the development (coding) of an software application.

  • Unit Testing is mainly performed by the developer.

  • Unit Testing save costs because it starts at early stage of development.

  • In this testing we check each and every individual components of a software application.

  • A unit in the unit testing is the smallest testable part or component of any software application.

  • Unit testing is nothing but single module or single program performance verification.

  • It is a testing where every independent modules are tested to determine is there are any defect has occurred at the time of development.

Types of tools used for Unit Testing

  1. Junit

  2. NUnit

  3. EMMA

  4. PHPUnit

  5. JMockit

Advantages of Unit Testing:

  1. Unit testing allows the developer to enhance code and ensure the component are working properly.

  2. Improves design and allows better performance of code.

  3. Developers can quickly make changes to the code.

  4. Costs of fixing a defect at early stage can quickly balance.

  5. It reduce the cost and time.

  6. It is independent testing here, we can test individual module of the software application without waiting for others to be completed.

Disadvantages of Unit Testing:

  1. It cannot hook each and every bug in an application.

  2. Unit testing only display the presence of defect ,it cannot show the absence of defect.

  3. This testing may not detect performance issues, or other system related issues.