- cross-posted to:
- technews@radiation.party
- hackernews@derp.foo
- cross-posted to:
- technews@radiation.party
- hackernews@derp.foo
You must log in or # to comment.
Yes by all means, split your business logic from your infrastructure layer, but for the love of god don’t use sqlmock. It’s 2023, we have testcontainers and the ability to relatively simply - and reliably - host external dependencies locally. With a MySQL or Postgres instance there isn’t really an excuse anymore to not be testing the integration.