6 ms·
I'm recently completely disagreeing with that wisdom. You should have thoughtful integration tests. Unit tests are only useful when you have an obvious indepen
by marcosdumay 10y ago
I'm recently completely disagreeing with that wisdom.
You should have thoughtful integration tests. Unit tests are only useful when you have an obvious independent "unit" with semantics that are completely independent from the rest of your code. If so, you test those.
- duderific 10y agoYes. If you want to make sure your functions work, write unit tests. If you want to make sure your application works, write integration tests.