3 ms·
I'm not a fan of extensive mocking but you're conflating two rather different test cases. A test where you mock out the database connection is testing something
by cess11 1y ago
I'm not a fan of extensive mocking but you're conflating two rather different test cases. A test where you mock out the database connection is testing something in application code, which has nothing to do with database configuration. You should of course have tests towards the database too, but then you'd mock out parts of the application instead and not the database itself.
- high_na_euv 1y ago>A test where you mock out the database connection is testing something in application code, which has nothing to do with database configuration. Wdym? You're testing e.g simple crude operation, e.g create hn thread With mocked db it passed, with real db it fails due to encoding issue. The result is that tests are green, but app does not work.