Anonymous

What Is Unit Testing? What Is The Difference Between Integration And Unit Testing?

3

3 Answers

Anonymous Profile
Anonymous answered
To understand unit testing we have to understand the concept of unit. Unit is the piece of code. Usually it is referred to as the smallest piece of code or smallest component of any software whose further sub-division is not possible.
Unit testing is the testing of the functionality of a single or multiple components which we refer as unit. It is done to see if any particular unit or piece of code is doing what it is intended to do and it is working as per requirement.
Unit testing is the responsibility of software developer. After creating any unit, he checks that the created unit is performing the intended operation. It comes under white box testing.
After creating many different units, the developer integrates them. The developers then have to test that multiple unit are working fine after integration or not. This testing is called Integration testing.
Many different units may combine to create to software. Multiples units as a whole can also be termed as one single unit. Testing of this unit which is created by many smaller units comes under unit testing. However, testing this unit to see if multiple units are working fine after integration with each other comes under Integration testing.
Sally Sen Profile
Sally Sen answered

A unit test is a test written by the programmer to verify that a relatively small piece of code is doing what it is intended to do.

An integration test is done to demonstrate that different pieces of the system work together. Integration tests cover whole applications, and they require much more effort to put together. They usually require resources like database instances and hardware to be allocated for them.

"System Integration Testing (SIT) services ensure that individual modules, product set-ups, batch operations, basic reporting functionality and key interfaces of an application-under-test (AUT) work well."- Maveric Systems


Karl Sagan Profile
Karl Sagan answered

Good evening! Thank you for your article, it was very interesting, I learned some new things for myself. In return, I would like to share my experience. I am a software developer, and before releasing some kind of software I have to test it for bugs and some inconsistencies. You can read more information here.I hope you will find it useful!

Answer Question

Anonymous