# Unit Test

*noun*

say it: **“YOO-nit test”** **/ˈjuːnɪt tɛst/**

A small automated check that one piece of code, such as a method, does what it should.

## What is **Unit Test**?

A **unit test** is a small automated check that one piece of code (a function or class) does what it should, in isolation, in milliseconds.

## In a sentence

- “A **unit test** proves AddTax returns 10.70 for a price of 10.”

Level: Novice · [More Unit Testing terms at this level](https://www.ask-codey.com/glossary?category=unit-testing&level=1)

Updated: November 9, 2026

## In other subjects

- [Unit Test in C#](https://www.ask-codey.com/glossary/unit-test-c-sharp)
- [Unit Test in Java](https://www.ask-codey.com/glossary/unit-test)
- [Unit Test in JavaScript](https://www.ask-codey.com/glossary/unit-test-javascript)

Source: https://www.ask-codey.com/glossary/unit-test-unit-testing
