Unit Testing is defined as a type of software testing where individual components of a software are tested.
Unit Testing of software product is carried out during the development of an application. An individual component may be either an individual function or a procedure. Unit Testing is typically performed by the developer. It is a testing method using which every independent modules are tested to determine if there are any issue by the developer himself.
Integration testing is the process of testing the interface between two software units or modules. Its focus is on determining the correctness of the interface. The purpose of the integration testing is to expose faults in the interaction between integrated units. Once all the modules have been unit tested, integration testing is performed.
Difference between Unit and Integration Testing:
|Unit Testing||Integration Testing|
|In unit testing each module of the software is tested separately.||In integration testing all modules of the the software are tested combined.|
|In unit testing tester knows the internal design of the software.||In integration testing doesn’t know the internal design of the software.|
|Unit testing is performed first of all testing processes.||Integration testing is performed after unit testing and before system testing.|
|Unit testing is a white box testing.||Integration testing is a black box testing.|
|Unit testing is basically performed by the developer.||Integration testing is performed by the tester.|
|Detection of defects in unit testing is easy.||Detection of defects in integration testing is difficult.|
|It tests parts of the project without waiting for others to be completed.||It tests only after the completion of all parts.|
|Unit testing is less costly.||Integration testing is more costly.|
- Difference between System Integration Testing (SIT) and User Acceptance Testing (UAT)
- Difference between System Testing and Integration Testing
- Difference between Unit Testing and Sandwich Testing
- Difference between Unit Testing and System Testing
- Difference between Component and Unit Testing
- Unit Testing | Software Testing
- Difference between Database Testing and Data warehouse Testing
- Difference between Positive Testing and Negative Testing
- Difference between Volume Testing and Load Testing
- Difference between Black Box Testing and Gray Box Testing
- Difference between Load Testing and Stress Testing
- Difference between Cucumber Testing and Selenium Testing
- Difference between Agile Testing and Waterfall Testing
- Difference between Active Testing and Passive Testing
- Difference between Scrum Testing and V-Model Testing
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.