IT lexicon Programming Unit test

Unit test

Programming På svenska → Updated: 2026-05-23

A test that verifies a small unit (usually a function) in isolation.

Fast (milliseconds), runs hundreds per build. Mock dependencies. Tools: Jest, Vitest, pytest, JUnit, RSpec. The base of the "test pyramid" — most unit tests, fewer integration tests, fewest E2E.

← Back to the lexicon