The Software Development Life Cycle(SDLC), requires the execution of the specific testing activities, after the completion of each level of the development, in order to minimize the percentage of defects in the final product. These testing activities includes, two of the necessary and significant testing techniques, i.e., unit testing and integration testing.
Unit Testing is a type of testing activity, which validates the correct and desired working of the developed components or units of the software product, whereas Integration Testing is done on integrated units, to ensure the proper interaction, compatibility, reliability among the components.
Let us go through the points, which differs the unit testing from the integration testing.
Unit Testing | Integration Testing | 1. It evaluates the each component or unit of the software product. | 1. It examines the proper working, interface and reliability, after the integration of the modules, and along with the external interfaces and system. |
2. Considers each component, as a single system. | 2. Integrated components are seen as a single system. |
3. The chief purpose is to check fitness and working of the each unit, for their further use. | 3. The motive is to check the reliable working of each unit or module, after the integration process. |
4. First level of the testing, in the development life cycle. | 4. It starts, with the completion of the unit testing phase and after the integration of the components. |
5. The scope of the testing, is limited to a particular unit, under the test. | 5. The scope of the testing is wider in comparison to unit testing, as it covers two or more than two modules, or may be whole system. |
6. It has no further types. | 6. It, generally includes two approaches.
|
7. It is also known by the name of the component testing. | 7. It has no other name. |
8. It does not deals with the database. | 8. It involves the usage of the database. |
9. Detailing of the code, is covered under the test. | 9. Integration structure of the system, is perceived under the test. |
10. It is performed at the coding level. | 10. Usually, done at the communication level. |
11. It does not support any type of external dependencies. | 11. It involves the dependencies and interaction with the external system. |
12. Unit tests are faster, to execute. | 12. Integration tests, are comparatively slower the unit tests. |
13. It is carried out with the help of the reusable test cases. | 13. Generally, it is carried out with the help of the stubs and drivers. |
14. It is a type of White Box testing. | 14. It is the form of, both black box testing and white box testing. |
15. Mostly, developers perform the task of unit testing. | 15. Testers, along with the integration team are being assigned, the work of integration testing. Developers may also takes part in the testing. |
Advertisement: