Two questions about unit tests.
I write unit tests for while, as a rule, they are usually test classes that I already wrote. I recently read an article article (remember the old article) that says: you have to write unit tests before you start writing your code.
Does anyone really follow this methodology? It seems like a good idea on paper, but in practice it?
Test-Driven Development (TDD) 2000- . , , . . , . , , , . , . , .
, , API API. API , , , API. API (, ), , - , , .
. , , , , , , , , , . . , , .
, , , . , . , , , " ". , , - .
, . , , ( ). , .
, . (.. ), , - ( !) . , .
Test Driven Development - . , , . , , , .
TDD, , . , , -, , , . , - ( ), , .
- ?
.
, ?
, , / ?
, ? ?
- - . , .
. .
, .
? , ? . , , - .
, , , ? . . - .
, - , ( ) ? . . , . , .
. , . , , . !
, , . , , .
, , № 2.
unittest " ", , "" "". , , .
Source: https://habr.com/ru/post/1759561/More articles:SQLITE + CHROME / SAFARI: "not authorized" ERROR - javascriptHow to dynamically add a module attribute from this module? - pythonRuby / Rails: difference between "@item" and "item" in a view - ruby | fooobar.comSupported Webpage Navigation - ASP.NET C # - c #How to convert MQseries reason code to string? - c ++What are the differences between the platforms that exist for vb6 unit testing? - unit-testingWhy does checking an existing column fail in SQL? - sqlSorting LineSeries WPF Charting Control - wpfNSClassFromString Case-insensitive Objective-C - objective-cWPF Toolkit Chart Unordered LineSeries - chartsAll Articles