---
title: "What is Unit Testing?"  
description: "What is Unit Testing?"  
author: "Shrikant Mishra"  
published: 2020-11-23  
canonical: https://www.mindstick.com/interview/33759/what-is-unit-testing  
category: "testing"  
tags: ["testing", "whitebox testing"]  
reading_time: 2 minutes  

---

# What is Unit Testing?

The Unit testing is a process of testing the smallest piece of code referred to as a unit that can be logically isolated in a system. This is mainly focused on the functional correctness of standalone modules.

The unit can be almost anything you want it to be – a specific piece of functionality, the program, or the particular method within an application. Smaller the unit, better it is. Where the smaller tests usually give you a much more granular view of your production, the code is performing. And also, your tests can run faster if they are small. So, it is also micro-level of software testing.

## Answers

### Answer by Shrikant Mishra

The Unit testing is a process of testing the smallest piece of code referred to as a unit that can be logically isolated in a system. This is mainly focused on the functional correctness of standalone modules.

The unit can be almost anything you want it to be – a specific piece of functionality, the program, or the particular method within an application. Smaller the unit, better it is. Where the smaller tests usually give you a much more granular view of your production, the code is performing. And also, your tests can run faster if they are small. So, it is also micro-level of software testing.


---

Original Source: https://www.mindstick.com/interview/33759/what-is-unit-testing

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
