Skip to content

Unit testing

Unit tests verify that each small part of a system, such as a single function, works as expected.

Source content checked . English translation published 2026-10-27.

In business automation

In this guide, unit tests appear alongside quality and testing concepts. They test a small part of a system, such as a single function. This explanation is based only on the definition and adds no claims about particular tools or organizations.

Examples

These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.

An example of testing a function

A single function is tested independently to verify that it returns the expected result. This is a general illustration of the definition, not a description of a particular team, product, or tool.

Relevant tools

Playwright
A testing tool in this guide. No claim is made here that it performs unit tests. Check the official documentation.

What to check

  • A unit test checks a small part and does not replace testing the entire system.

Related terms

Sources