3 ms·
A "unit test" that relies on a database connection, isn't a unit test, rows from a table can be mocked. Data from all external APIs can be mocked. If you want
by anon73044 7y ago
A "unit test" that relies on a database connection, isn't a unit test, rows from a table can be mocked. Data from all external APIs can be mocked.
If you want to run a full suite of integration tests, be my guest, but none of those will ever be unit tests.
- scarface74 7y agoWho are you arguing with? Does anything in my reply imply that I think it's good idea not to mock dependencies?