|
|
|
|
|
by h0l0cube
1805 days ago
|
|
> I often feel that people take "unit" test too literal Perhaps. And this is where I think a useful distinction can be made between the "unit" (usually a function, or sometimes a single file, e.g., a C-style compilation unit) and a "system" (a collection of functions that perform complementing tasks, sometimes also a unit). > You need to attack the "business end" of your unit (or small groups of units) It's worth noting here, that sometimes the business logic extends all the way to the "unit". This is usually in very technical domains. Like say, writing a maths helper library for consumption by other programmers (either internally or externally) would often have a clearly specified outcomes at the unit level. |
|