Answer the question
In order to leave comments, you need to log in
Is a thorough check of all code the key to bezbugnosti, and what to do if it is in our team?
Epigraph. Literally an hour ago, I wrote a code of 70 lines, in which I found 3 bugs at the first recheck, 1 more at the second, and 1 more at the third. And this is constant.
Previously, we had releases teeming with bugs in general.
Now I personally took up this (it's okay that I'm just a middle), I began to look for bugs in myself and my colleagues. Check every line, and not just once. Fortunately, I have something like autism, a tendency to check everything and generally do routine. So I find a lot of bugs.
Auto-tests, if anything, are written. But, of course, some bugs are in what seems to be already covered by tests.
1. So, do you think there will really be no bugs in the release?
2. Maybe not write auto-tests at all? Indeed, in terms of labor intensity, it is easier to look at something in the code than to write a test for this case. Or write them only for the complex, that is, do not make them unit tests, strictly speaking.
Answer the question
In order to leave comments, you need to log in
Both. And manual verification of the code (not your own, but your colleagues), and tests.
But this is ideal, but in reality everything is limited by staffing and deadlines for completing tasks, and sometimes there is no time to carefully catch bugs.
1. bugs are everywhere
2. you don't understand the logic of the tests.
Tests are not mind-blowing; their purpose is to check work, that is, write them first, you get red badges. You add code, the tests turn green. Moreover, you always have this code, it is automatically executed, does not suffer from inattention and gives a clear indication of the problem here.
As for the complexity, with each new release, you check all the features + new features + their interaction with the previous code. Extra work and repetitive. Tests do it for you.
Epigraph. Literally an hour ago, I wrote a code of 70 lines, in which I found 3 bugs during the first recheck, 1 more at the second, and 1 more at the third.
2. Maybe not write auto-tests at all? Indeed, in terms of labor intensity, it is easier to look at something in the code than to write a test for this case. Or write them only for the complex, that is, do not make them unit tests, strictly speaking.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question