2 ms·
Why are you testing how the responsibility is divided between classes? Yes, some times you have to make an unclean cut into your code to test something. But th
by marcosdumay 8y ago
Why are you testing how the responsibility is divided between classes?
Yes, some times you have to make an unclean cut into your code to test something. But this is not the default situation. That's why the article has that "mostly integration" part on its title.
- Double_a_92 8y agoI think his argument was that unit tests don't hold up to "real-world" refactorings, because most of the time you change the interface of your classes. Unit tests work nicely if you have one fixed interface and you just refactor some specific implementation of that.