Getting Started at Unit Testing as a Group in These Economic Times

We have a group of several developers and some business analysts. We, the developers, would like to start adding unit testing as part of our coding practice so that we can deliver supported and extensible code, especially since we will maintain and improve the application in the future. But in this economic downturn, we are struggling to get started, because it is difficult for us to deliver solutions as quickly as possible, the quality of which is not a top priority. What can we do or say to show that we can deliver faster and with higher quality, as well as prepare for future improvements.

Basically, we just need to overcome the learning curve of integrating unit testing into our daily work, but we cannot do it now, because it is seen as unnecessary overhead that delays our projects that businesses need now.

We, as developers, want to provide the maximum value for the business, especially quickly, but we know that we will also need to do this in 6 months, and we also need to plan this, and we believe that unit testing will help us significantly along the line.

EDIT Thank you for all your wonderful experiences. I personally know how to write unit test, but I have no experience in telling if unit test is good. I just ordered Test Driven Development: By Example and will take the initiative to make the ball roll on unit testing in our group.

+3
source share
6 answers

Run the module by checking the functions or classes when creating them. Start with simple classes / functions that do not have external dependencies (DB, file system).

. , ( / ).

TDD: "" Test-Driven Development: ". , . , .

+2

. . , - , , .

+5
+2

...

, , , . , , , .

, , , , , ? ?

100% , , ; , , - .

+2

( , , ). - , , . , , , , .

. , "20 " A, B C, .

. .

( ), , , .

- !

+2

, , , -, , , . , , , . , . , , . , , , .

+1

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


All Articles