What is Unit Testing
Advertisements
What is Unit Testing
Unit testing, a testing technique using which individual modules are tested to determine if there are any issues by the developer himself. It is concerned with functional correctness of the standalone modules.
Unit Testing Tools
We have various types of unit testing tools available in the market, which are as follows;
- NUnit
- JUnit
- PHPunit
- Parasoft Jtest
- EMMA
Advantages of Unit Testing
- Reduces Defects in the Newly developed features or reduces bugs when changing the existing functionality.
- Reduces Cost of Testing as defects are captured in very early phase.
- Improves design and allows better refactoring of code.
- Unit Tests, when integrated with build gives the quality of the build as well.
Disadvantages of Unit Testing
- It cannot identify integration or broad level error as it works on units of the code.
- In the unit testing, evaluation of all execution paths is not possible, so unit testing is not able to catch each and every error in a program.
- It is best suitable for conjunction with other testing activities.
Google Advertisment