What are component tests, and what is it like to be SDET

annotation


The article talks about an unconventional, but useful form of tests, and also summarizes seven years of work in the development of tests.


Why do we need component tests?


After all, there are, say, unit tests, which test in detail the offal of the components. They thoroughly verify that the component is working in accordance with the developer's intention. But often it is a check of "buttons", and not how the suit sits in general. And not always the behavior conceived by the programmer coincides with what the customer wanted.


And there are, for example, acceptance tests. And they eliminate all the indicated disadvantages. But, unfortunately, make new ones. They are slow, often unstable, and usually manual. However, they only indicate the problem, but do not localize it.


Obviously, the need arises for intermediate tests that will become the golden mean between modular and acceptance tests. This middle can be component tests.


What are component tests?


These are tests for the public API of the component. Accordingly, they are written in the same language as the component. Task tests:



Obviously, component tests make sense when you have dedicated components with an extensive interface. For example, a dynamic library or a COM object. Then the component tests will give the maximum effect.


Pros to-tests:



Cons to-tests:



Summary 1


Component tests are good, but only if you have all the conditions for them: a wide public API, the right workflow, and the right people in the team.


What is it like to be SDET?


Obviously, SDET - Software Development Engineer in Test is an ideal candidate for writing component tests. He knows how to write code, and he knows how to think with tests. He also provides a second opinion, which also improves the quality of tests and code. It all sounds interesting and tempting - perhaps you already want to be one. Here I will tell you what the work of SDET differs from the work of a pure developer.


Advantages of SDET:



Disadvantages of SDET:



Summary 2


As a person who worked for many years as a developer, then went to SDETs for several years and then returned to development, I can say the following.


I highly recommend SDET for at least a year or two. This is a very useful experience for any developer. But linger there, in my opinion, not worth it.

Source: https://habr.com/ru/post/414563/


All Articles