4 ms·
> One of the biggest benefits to running containers is actually E2E tests... 100% agree. Most developers don't even bother testing code that requires DBs and o
by hiram112 7y ago
> One of the biggest benefits to running containers is actually E2E tests...
100% agree. Most developers don't even bother testing code that requires DBs and other external services because it's a pain to keep test environments up and running so a lot of the most important and buggy code slips through the cracks.
Then you have the developers who do test but just make heavy use of mocking libs and other tricks which aren't helpful in the long run since the mocks don't actually do anything.
But setting up a docker compose with the whole stack - completely reset each time the tests are run - makes integration tests so much more valuable. And usually it's not a huge deal to set up the plumbing since the docker files are often already created for production.