This blogpost is focused on Sushma S’s article Understanding The Difference Between Unit, Integration and Functional Testing. The focus of this article, as one could infer from the title, is to differentiate between Unit Testing, Integration Testing, and Functional Testing.
Unit Testing:
- Unit testing tests the smallest part of the application that is testable
- Unit testing is done before Integration testing by software developers using white box testing techniques.
- Unit testing does not only check the positive behavior, but also the failures that occur with invalid input.
- Finding issues/bugs at an early stage is very useful and it reduces the overall project costs. Issues found at this stage can be resolved very easily and their impact is minute.
- A unit test tests small pieces of code or individual functions so the issues/errors found in these test cases are independent and do not impact the other test cases.
Integration Testing:
- Integration testing tests the integration of two units in the application
- The aim of integration testing is to check functionality, reliability, and performance of the system
- Integration testing determines whether the the combination of units provides the desired output or not
Functional Testing:
- Functional testing is a black box testing technique, where the functionality of the application is tested to generate desired output by providing certain input
- Functional testing is based on the requirements provided
From the blog cs443 – TayNock's Blog by taynock and used with permission of the author. All other rights reserved by the author.