4 ms·
> It leads with considering "unit" to be "the whole system" being bad I do not understand this statement. Could you point out which part of the article you mea
by WolfOliver 3y ago
> It leads with considering "unit" to be "the whole system" being bad
I do not understand this statement. Could you point out which part of the article you mean.
- JonChesterfield 3y ago> when people started considering the system under test as the “unit”, it significantly affected the quality of test suites (in a bad way)
- WolfOliver 3y agoIt should be "when people started considering parts of the system under test as the “units”"
- JonChesterfield 3y agoUnits are parts of the system. Perhaps you want to say something about granularity?
- tsimionescu 3y agoThe claim in that phrase of the article is that a "unit test" was originally supposed to mean "a test that runs unitarily, by itself". Conversely, the more common interpretation of the term is "a test for a single unit of code". So, according to that phrase, units are not part of the system. The units are supposed to be the tests. Note that I don't agree with this semantics game. But that is the intended meaning of that phrase.