Number | Base of Difference | Unit Testing | Integration Testing |
1 | Speed | When we say about the Unit Test it is fater to write and execute. | When we compare this with Unit Test Integration Testing is slower to execute. |
2 | Functionality | As the name suggest Unit Testing here we will test the small module or a piece of code in application. | When we say about the Integration testing, individual modules combined together and as a group, they are tested. |
3 | Complexity | When we say about the Unit Testing it is less complex to write and execute. | Integration Testing are more complex to write and execute. |
4 | Involvement of dependencies | When we say about the involvement of outside in Unit Testing we do not require any involvement of outside dependencies like network, database etc. | Integration tests require the use of real dependencies in order to perform testing like test database, hardware, etc |
5 | Test Conductor | When we say about the Unit Tests are generally conducted by the developer or the person written that particular code | Integration tests are conducted by the separate team of testers |
6 | Order of testing | Unit Testing is mainly performed in starting phase just after an individual module or a piece of code is developed. | Integration testing is performed after the unit testing of individual modules are completed and before the start of System testing |
7 | Maintenance | When we say about Maintenance in Unit test it is very low. | Integration tests have very high maintenance |
8 | Scope | The unit test has a very narrow scope as it covers only a piece of code/part of an application | Integration tests have a wider scope as it covers the whole application |
9 | Knowledge of the code | When we say about the Unit Testing the tester has full knowledge of code and internal functionality and hence known as white box testing.
| A person working on Integration testing does not have knowledge of code but has knowledge if expected output and overall functionality and hence known as black-box testing
|