3 ms·
I have come to the same conclusions. I would also add that I prefer higher-level integration tests because I want the tested code to be malleable in case I nee
by whstl 3y ago
I have come to the same conclusions.
I would also add that I prefer higher-level integration tests because I want the tested code to be malleable in case I need to refactor in the future. To me unit tests take away some of this malleability.
I write unit tests for the same cases you do, however I also tend to write mostly unit tests for regression testing, which sorta breaks my own rule.