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
Junit
NUnit
EMMA
PHPUnit
JMockit
Advantages of Unit Testing:
Unit testing allows the developer to enhance code and ensure the component are working properly.
Improves design and allows better performance of code.
Developers can quickly make changes to the code.
Costs of fixing a defect at early stage can quickly balance.
It reduce the cost and time.
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:
It cannot hook each and every bug in an application.
Unit testing only display the presence of defect ,it cannot show the absence of defect.
This testing may not detect performance issues, or other system related issues.