As we know that testing is the most important stage in the process of delivery of any application or software as it is only testing which not only validate the quality of an application but also provides an opportunity to the developer to improve its product.
Every application is being developed in some high or low level language which means some code has been written for its development so on the basis of modules that being going to test there is classification of testing namely unit testing and integration testing.
Following are the important differences between Unit Testing and Integration Testing.
|Sr. No.||Key||Unit Testing||Integration Testing|
|1||Definition||Unit testing is the testing where primarily single module is tested or it checks if the small piece of code is doing what it is supposed to do.||On other hand Integration testing is the testing where multiple modules are tested to verify that if different pieces of the modules are working together as per expectation or not.|
|2||Focus Area||In case of Unit testing as single module is going to be tested at a time so focus of tester is on internal design of the application as well.||On other hand in case of Integration testing multiple modules get integrated and are tested as a single module so tester focus more on integrated functionality rather on internal design of the application.|
|3||Perform stage||Unit testing is performed at the first stage of testing as it is performed first of all other testing processes.||On other hand Integration testing is performed after all modules get integrated are done with unit tested i.e Integration testing is done after unit testing and before System testing.|
|4||Abbreviation||Unit testing is also known as white box testing.||On other hand Integration testing is known as black box testing.|
|5||Tester||As unit testing as mentioned in above points performed at first stage of testing so generally performed by developers.||While Integration testing is done after all modules get integrated and thus performed by Testers.|
|6||Defect Detection||In unit testing the detection of defects is comparatively easy as single module interaction at a time.||While in case of Integration testing detection of defects is comparatively difficult as compare to Unit testing.|