3 ms·
That’s not really true. “Unit tests are small tests, each one exercising a little piece of functionality. The units tested are usually individual methods, but
by caseyohara 1y ago
That’s not really true.
“Unit tests are small tests, each one exercising a little piece of functionality. The units tested are usually individual methods, but sometimes clusters of methods or even whole objects.”
Extreme Programming Explained: Embrace Change, 2nd Edition (2004) Kent Beck
- Izkata 1y agoThat quote is saying the same thing as GP.
- viraptor 1y agoYou're agreeing with me there. "each one exercising a little piece of functionality". In Beck's approach the tests are added at each step for a simple functionality addition, which then gets implemented in the project to pass the test. These days unit tests are more commonly used as "every method is a unit to be tested completely", often after the implementation is already there.
- caseyohara 1y agoI don’t see how? You said: “Around the xp times, unit tests were not per-method.” Beck said: “Unit tests are usually individual methods”