Let's say I'm starting a new project, quality is the top priority.
I plan to conduct extensive unit testing, what is important to remember when I work on architecture in order to facilitate and expand the capabilities of unit testing?
edit . I read the article several times ago (I cannot find it now), talking about how to decouple the instantiation code from the behavior of classes can be useful in unit testing. These are the design tips I'm looking for here.
, , (, ..). , : " , . , " , ".
, , . , , , , API- , , .. , , . , , , , .
, . "" , , , . .
, . , . Flintstones.Wilma.addChild(); , "", "" "".
, , , . , , .
SOLID, .
SO:
:
: , . - "" . , , , , , .
, , . "" , , , ... . (: , , , ..)
: , , .
, , , . , , . , , !
, , ; , , ! , , , . .
!
Your tests will always be as good as your requirements. These may be requirements that you come up with right away, they may be requirements that you come up with one at a time when adding functions, or they may be requirements that arise when sending, and people start telling the boat about loading errors, but you cannot write a good test if no one can or will not accurately document what a thing should do.
Source: https://habr.com/ru/post/1730303/More articles:How to store a large amount of text data in memory? - performanceWinForms performance secret: is the result of PictureBox control slower than the original? - performance13 '' iPad simulator - ipadBinary and non-binary socketing java - javaCan you make a C ++ application call from MS SQL Server? - c ++Can I send an event from a thread to an action? - javaDownload additional comments using AJAX in Rails - ajaxAre .fsx files interactively compiled in debug or release mode? - f #C ++ Allow host IP from URL - c ++Display keyboard shortcuts in context menus Visual Studio - visual-studioAll Articles