Go test inside LXD container

When you’re testing software that interacts with another system, it’s common to mock all the dependencies. But let’s be real — mocks are great for simulating interactions, yet they don’t give you any guarantees that the actual integration between systems will work as expected. What is the purpose of mocking database if your code relies on the database behavior (e.g. unique index constraint)? You should always consider writing integration tests! ...

30 Mar 2025 · 3 min · 630 words · Anton Troyanov