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

Updated

In other subjects