3 ms·
But if you include a real DB on your business logic testing, that's not unit testing anymore, is it,
by bluepizza 5y ago
But if you include a real DB on your business logic testing, that's not unit testing anymore, is it,
- tuxie_ 5y agoExactly. It may sound ridiculous but it happens all the time. You dig into the "unit tests" of the app and you find mocks for a db call, or an API call, or the system's date, or environment variables that some other part of the system will break if they are not defined (or all of the above). That's what I mean, these are all code smells that the code is highly coupled.