Test-driven development
Test-driven development (TDD) is a method in which you write the test first, then the code it tests.
On this page
Source content checked . English translation published 2026-10-27.
In business automation
In the guide, test-driven development appears alongside development and testing concepts. It is a method in which you write the test first, then the code it tests. This explanation is based on the definition alone and adds no claims about specific tools or organizations.
Examples
These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.
Example of the workflow
First, write a test for a function, then write the code it tests. This is a general illustration of the definition, not a description of a specific team, product, or tool.
Relevant tools
- Playwright
- A testing tool mentioned in the guide. This makes no claim that it supports this method; check the official documentation.
What to check
- The method sets the order of writing: test first, then code.