Software Engineering vocabulary · Testing

Unit test

Meaning in software engineering, with examples

/ˈjuːnɪt test/nounCore term

In software engineering, unit test means: A small automated test that checks one function or class on its own, separate from the database, the network and the rest of the system.

In Turkish: birim testi

How it is used

Teams write, run and fix unit tests, and reviewers often ask 'Can you add a unit test for this?' Unit tests should be fast enough to run on every commit in the CI pipeline.

Example sentences

  1. Please add a unit test for the discount calculation before we merge.

  2. All 450 unit tests pass in under ten seconds.

Common collocations

  • write a unit test
  • run the unit tests
  • add a unit test
  • unit tests pass

More terms: Testing

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: