Hacker News new | ask | show | jobs
by thow-58d4e8b 1529 days ago
It gets worse than that. Often, code is pushed into an absurdly wrong level of the development stack, just because it makes testing it easier. For example, something should be a database trigger, but in-memory testing database gets in the way. Other times it strikes all the way to architectural topics - message queues replaced by REST calls, because the former is difficult to mock
2 comments

Yup. I open a 'test-mode-only' socket on our ingestion piece, for integration testing, as I can't easily get onto our MQ (even non-prod).
> in-memory testing database gets in the way

Why would using an in-memory database prevent use of triggers?