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

What Is Unit Testing

Uploaded by

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

What Is Unit Testing

Uploaded by

pramod mg
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

2/15/2020 What is Unit Testing?

  Menu

Unit Testing
December 3, 2019

What is Unit Testing?


Unit testing is the rst level of testing performed on individual modules,
components or pieces of code. In unit testing, the individual modules are tested
as independent components to ensure that they work correctly and are t to be
assembled/integrated with other components. This testing is performed by
developers. The developers usually write unit tests for the piece of code written
by them.

As stated before, unit testing is the rst level of testing. Once individual
components are unit tested, integration testing is carried out.

Unit testing cannot be performed manually. The unit tests are always
automated and more speci cally use the White-box testing technique as the
knowledge of the piece of code and internal architecture is required to test the

https://artoftesting.com/unit-testing 1/6
2/15/2020 What is Unit Testing?

code. The developers create unit tests passing required inputs to the test script
  Menu
and asserting the actual output with the expected results.

Advantages of Unit Testing


Defects within a module can be detected at earlier stages of
development. Hence the cost of xing the defects greatly reduces.
Unit testing improves testing ef ciency and better resource utilization as
testing of a module can be started without having to wait for other
modules to nish.
Exhaustive testing focusing on individual functionality is possible in unit
testing.
Unit tests aid in faster development and debugging as the impact of new
changes can be easily detected by running the unit tests.
A successful unit test report generates a sense of con dence about the
quality of the code. Modules successfully unit tested can be easily
merged with other modules.

Limitations of Unit Testing


Unit testing cannot detect integration or interfacing issues between two
modules.
It cannot catch complex errors in the system ranging from multiple
modules.
It cannot test non-functional attributes like usability, scalability, overall
performance of the system etc.
Unit tests cannot guarantee functional correctness or conformance of
application with its business requirements.

That’s it from my side, Please share it with your friends. Check out the complete
software testing tutorial here.

Software Testing Tutorial


 Manual Testing

https://artoftesting.com/unit-testing 2/6
2/15/2020 What is Unit Testing?

 Levels of Testing
  Menu
 Integration Testing

Secrets Food Avengers Facts You're This is the Cast of


Network's 'Cutthroat De nitely Getting 'Roseanne' Today
Kitchen' Hid Under Wrong
Your Nose

Leave a Comment

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I
comment.

Post Comment

https://artoftesting.com/unit-testing 3/6
2/15/2020 What is Unit Testing?

FROM THE WEB BY INTERESTINGLINKS   Menu

12 THINGS YOU'D NEVER HAVE THOUGHT TASTE


BETTER WITH THIS

WHAT YOU SHOULD THIS IS WHAT


NEVER ORDER FROM HAPPENS TO YOUR
HOOTERS BODY EVERY TIME YOU
BINGE EAT

Popular Tutorials
Manual Testing Tutorials
Selenium Tutorials
JMeter Tutorials
Katalon Studio Tutorials
API Testing Tutorials
Manual Testing Interview
Selenium Interview Questions
JMeter Interview Questions
SQL Queries for Interview
DBMS Interview Questions
Linux Interview Questions

https://artoftesting.com/unit-testing 4/6
2/15/2020 What is Unit Testing?

  Menu

Best Big Data


Online Course

Big Data Hadoop courses


curated by industry
experts to help you stand
out from the crowd

About Us Contact Us Disclaimer Terms of Service Privacy Policy

©2020 ArtOfTesting

https://artoftesting.com/unit-testing 5/6
2/15/2020 What is Unit Testing?

FROM THE WEB BY INTERESTINGLINKS   Menu

Popular Memes That We Finally Know Why


Completely Destroyed You Should Never
Innocent Lives Drain Pasta in the
Si k

https://artoftesting.com/unit-testing 6/6

You might also like