Difference between Unit Testing and Integration Testing :
Unit Testing |
Integration Testing |
1.Unit Testing is a method of testing that verifies the individual units of source code are working properly |
1.Integration Testing is the phase of software testing in which individual software modules are combined and tested as a group. |
2.Faster than integration testing. It should take less than half a second to run a unit test |
2.Generally can be much slower than unit tests. |
3.A unit test is done in (as far as possible) total isolation. |
3.An integration test is done when the tested object or module is working like it should be, with other bits of code. |
4.Unit test never fulfils the final functional requirements |
4.This test will cover the functional requirements but not enough to ensure system validation. |
5. The scope of testing is entirely within the software module |
5.Testing is usually carried out after module level integration is done in software development. |
6.Unit tests are comparatively easier to maintain. |
6.Integration tests are hard to maintain. |
7.Types of unit testing include static unit testing and dynamic unit testing. |
7.Types of integration testing include incremental, Top down, Bottom up, sandwich and Big Bang approaches to testing. |
8.It occurs before Integration and System Testing. |
8.It occurs after Unit testing and,before System testing. |