What is it?
Unit test
A unit test is a small piece of code that automatically checks whether some part of a program behaves correctly, by running it on a known input and confirming the output is as expected. Projects accumulate many unit tests so they can catch mistakes automatically. Unit tests are what make software such a clean thing to grade: a fix either makes the relevant tests pass or it does not, no human judgment required.
From the Benchmarks glossary