Skip to main content

Automated tests: what test files give the client

An automated test is a check written so that the program itself verifies an important part of the code. The benefit for the client is simple: a new change does not quietly break payments, 1C sync or stock, and errors are found before your customer finds them. Below are the test file counts in our real projects and what exactly they check.

Published: 8 min read

What an automated test is

In a business system, checking every screen and scenario by hand after each change is not realistic. An automated test hands this work to the program. It is a small check in code: it creates a situation and verifies the result. For example, “is the item reserved when an order is placed?” or “is the payment amount calculated correctly?” If the check fails, the developer sees it before the customer does.

Checks are grouped into files. One test file usually holds several checks for one part of the system, so there are fewer files than checks. The numbers below are test file counts.

Tests fall into two main types:

  • a unit test checks one small part of the code in isolation, for example a function that calculates a price
  • a browser test opens the system in a browser and checks it the way a user would: clicking buttons and filling in forms

A short definition is in the glossary.

What this gives a business owner

A business system is not written once and left alone. 1C gets updated, a new payment method is added, new modules arrive stage by stage. Every change can break an older part. Without tests, the user finds it: a customer complains or a discrepancy shows up in the books.

Automated tests give the client three things.

  1. 01Errors are found before the customer finds them. A failed check shows the error, and it is fixed before it reaches the user.
  2. 02Extending the system is safer. When a new stage is added, older parts are checked automatically instead of by hand.
  3. 03Handing the system over to another team is easier. If a new developer changes the code, tests immediately show what broke.

That is why the important parts are covered by automated tests. Payments, 1C sync and stock are tested first: an error there hits money or customers directly.

ONUR: payments, 1C, stock and delivery

ONUR is a plumbing products distributor. We built them a customer app, an admin panel and a backend that works with 1C. The backend has 56 automated test files and the app has 27. They check four things: payment security, 1C sync, stock and delivery.

The app's rules explain why these four.

  • Payments. The amount is held on the card and charged 24 hours after delivery. A mistake in this rule is a mistake with money.
  • 1C sync. The exchange runs every 30 seconds, and each record is resent up to 5 times. An error here makes prices or stock in the app differ from 1C.
  • Stock. When an order is placed, stock is checked and the item is reserved. Otherwise two customers could buy the same last unit.
  • Delivery. Delivery runs through Yandex, and the customer gets a push notification when the status changes.

These four parts share one thing: errors in them are not obvious right away. The app opens and the buttons work, but stock in the app differs from 1C, or the payment is charged at the wrong time. Such an error is hard to catch by manual testing, while an automated test checks it the same way every time.

More on how the 1C exchange is built: a mobile app that works with 1C.

Blitz: 228 in the backend, 107 in the student app

Blitz is a German language school. Its system has one backend and four interfaces: an admin panel and apps for students, teachers and parents. The backend has 228 test files, and the student app has 107.

There are many tests because of the system's size and age: it grew with the school over a year. As of October 2026, the backend repository has 2,341 commits, so the code has changed many times. The system is connected to Hikvision Face ID attendance, Click, Payme and Paynet payments, and amoCRM. Payme payments are reconciled every 5 minutes, and groups in amoCRM are updated every hour.

In a system like this, one change can affect an unexpected place: for example, an edit to the schedule can affect payment or attendance calculations. Tests check these connections.

Blitz also shows the third benefit. In November, the system is being handed over to the school's own development team, and the code and documentation stay with the client. Test files are part of the code, so they go to the new team too and show it what a change broke.

Maton: 25 test files

Maton is a clothing brand. We built an online store, an in-browser design editor, an admin panel and a backend for them. The project has 25 test files. They check background removal, payments, layer positioning, reviews and the size calculator.

The list shows the store's most delicate parts. The server removes the background from an image the customer uploads: before, this was done in the browser with a 76 MB model and took up to 18 seconds. Layer positioning matters so that the design the customer sees in the editor comes out correctly in print. Payment goes through Click or Payme, and even if the print file has an error, the payment is not canceled.

The Maton team runs the store on its own, without a developer. So finding errors early matters even more: no developer inside the store would notice them.

Our own product: a café management system

Besides client projects, we have our own café management system. It has 634 unit tests and 161 browser tests. These are test counts, not test file counts. Browser tests check the system the way a person uses it, and unit tests check individual calculations and rules.

Each project has its own numbers, because the systems differ. Adding them into one big number makes no sense: what matters is which parts are checked in each project.

Tests and stage-by-stage work

Many of our projects are built in stages: the first stage ends with a working result, and the next one is added on top of it. This is how the Blitz system grew over a year, and the DeepVision agent app was built in two stages. In this kind of work, every new stage touches old code.

Without tests, the earlier parts have to be rechecked by hand after every stage. The longer the project, the more of this work there is and the more expensive the next stages become. With tests, the program checks the old parts, and the team's time goes to new work.

For the client, this means one more thing. At the end of a stage, you test the new feature, while the old features are protected by tests. You do not have to check the whole system from the beginning every time. The term “stage-based pricing” is explained in the glossary.

What to ask your contractor

When ordering a system, ask these questions.

  • Are there tests, and which parts do they cover?
  • Are payments, sync with the accounting system and stock tested?
  • When do the tests run: after every change?
  • Are the tests handed over together with the code when the system is transferred?

If there is no clear answer, your customer will find the error at the first major change. How a mobile app and an internal system are built: mobile app for business and ERP and internal systems. How work proceeds after the start: our process.

What an automated test does not guarantee

An automated test checks only the situation it describes. A situation nobody thought of is not in the tests either. So tests do not replace your own check of the working version. The number of test files is not a measure of quality by itself either: a small number of well-chosen files can protect important places better than many randomly written ones.

In short

  • An automated test is a check written so that the program itself verifies an important part of the code.
  • The benefit: errors are found before the customer, and extending the system or handing it to another team is safer.
  • ONUR has 56 test files in the backend and 27 in the app: payment security, 1C sync, stock, delivery.
  • Blitz has 228 in the backend and 107 in the student app, and Maton has 25 test files.
  • What matters is not the number of files but which parts are checked.

Frequently asked questions

If there are automated tests, will the system be error-free?

No. An automated test checks only the situations it describes. It helps find errors in important places earlier, but it does not replace your own check at the end of a stage.

Which parts are tested first?

The ones where an error hits money or customers directly: payments, 1C sync and stock. In the ONUR project, delivery is tested as well.

If we hand the system to our own developers, do the tests go with it?

Yes. Test files are part of the code. In November, the Blitz system is being handed over to the school's own team, and the code and documentation stay with the client.

Where can I see the number of test files in a project?

In the technical details on each case study page. For example, the Maton page lists 25 test files and what they check.

Free consultation