0% found this document useful (0 votes)
3 views

unit&integration_testing

notes

Uploaded by

adiisood1
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

unit&integration_testing

notes

Uploaded by

adiisood1
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

EXPERIMENT 7

Aim: To perform various testing unit testing, Integration testing

Unit Testing:

What is unit testing?

A unit test is a small piece of code that checks if a specific function or


method in is an application works correctly. It will work as the function
inputs and verifying the outputs. These tests check that the code work as
expected based on the logic the developer intended.

Unit Testing is a type of software testing where individual software


components are tested. Unit Testing of the software product is carried out
during the development of an application. An individual component may
be either an individual function or a procedure. Unit Testing is typically
performed by the developer. It is a testing method using which every
independent module are tested to determine if there is any issue by the
developer himself.

Fig.unit testing

Integration Testing:

Integration testing is the process of testing the interface between two


software units or modules. Its focus is on determining the correctness of
the interface. Integration testing aims to expose faults in the interaction
between integrated units. Once all the modules have been unit tested,
integration testing is performed.
Difference between Unit and Integration Testing:

Unit Testing Integration Testing

It tests small modules or a piece of code Two or more units of a program are combined
of an application or a product and tested as a group

It’s a quick write-and-run test It is slower to run

Typically performed by a software It is traditionally carried out by a separate


developer team of testers

It is usually carried out after Unit Testing but


It can be performed at any time
before the overall system testing

It has very low maintenance It has very high maintenance


Unit Testing Integration Testing

It has very limited in scope, as it only It has wider scope as it covers broader part of
covers a piece of code the application or the product

It pays attention to integration among two or


It focus on one single module
more modules

Finding errors is relatively easy Finding errors is more difficult

Test executor knows the internal design Testers don’t know the internal design of the
of the software software

It is white box testing It is a black box testing

You might also like