Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Developer basics

unit teszt

in English: unit test

advancedwidespread

A unit test is a short checking program that shows separately whether a small part of a software does what we expect from it.

In plain terms

Imagine you are assembling a car. Before installing each part, you test it separately: does the bulb light up, does the valve close, does the bearing rotate? A unit test is the same in software: it examines a tiny part of the program in isolation from the rest.

The test itself is code. It provides an input, runs the part under examination, then compares the result with what should come out. If they match, the test is "green"; if not, it is "red," showing which check failed and how the result differs from the expected one.

The real benefit comes later: if someone rewrites the program, the hundreds or thousands of tests typically rerun in seconds or minutes and signal if a part that previously worked has broken. This is why it became especially important in the era of coding agents: the agent checks its own work by running the tests, and this also gives you a foothold to verify that the code written by the machine actually works in the tested cases.

How it works

  1. The developer or coding agent selects a small unit, typically a single function, such as one that calculates net from gross price.
  2. It writes a test for it: it provides the input (12,700 forints, 27 percent VAT) and the expected result (10,000 forints).
  3. The test runner program starts the unit and compares the actual output with the expected one; external dependencies (database, network) are often replaced with mocks so that only the specific part is the subject of the test.
  4. The result is immediately visible: success or failure, with the exact deviation in case of an error.
  5. Tests are then automatically re-run with every modification, so errors are detected minutes after they occur, not weeks later with the customer.

An everyday example

You ask a coding agent to fix a bug in your online store's discount calculation. The agent first writes a test that checks the faulty case, then after the fix runs all tests and reports back: '143 tests passed, 0 failed'. From this you see that the faulty case now works well and the rest of the cart's calculations covered by tests have not broken. However, this does not prove that the program is flawless in every situation.

Who is affected

developerIt is a daily work tool: it proves that the code works and catches it when a change causes an error elsewhere. → Code
entrepreneur, executiveThe tests of commissioned software show how safe it is to modify it later and how much each change will cost.
employeeIf you have an AI agent create a small program or automation, tests provide a basis for trusting the result. → Work & HR
jobseeker, new graduateWriting and interpreting tests is a basic expectation in developer and tester job interviews. → Work & HR

A common misconception

MythIf every unit test is green, the program is bug-free.
In realityThe test only confirms what was pre-written in it. It fails to detect issues no one anticipated or those arising from failures in unit cooperation.

Limits and risks

Similar, but not the same

Related concepts

Broader

software testing, automated testing, quality assurance

Narrower

test coverage, teszteset, mock

On the edge

integration test, test-driven development, regression test, continuous integration, coding agent

A brief history

Testing program parts separately dates back to the early decades of software development. Its modern, automated form was popularized by Kent Beck's SUnit framework for the Smalltalk language, and then by JUnit, co-authored with Erich Gamma in 1997.

Where things stand

By the end of 2026, unit testing is a standard practice in software development and runs automatically in almost every serious project. Coding agents write and run them in large numbers, so developers' attention increasingly focuses on whether the tests truly check the essentials.

Status: 2026 November

In the news

Appears in 1 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

unit teszt · unit test · unit test · unit testing · unit testing · unit testing · modulteszt · komponensteszt

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.