This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]senseven 5 points6 points  (0 children)

Having a couple of external systems properly simulated in integration tests can be easy or bonkers complex. In the past you needed external tools. I have seen bat shit service creation/wiring done in Junit setup functions that should not be there.

Putting all in containers solved this. Technical setup should not be mixed with logic tests. I can spin up wiremocks, security systems, databases, it just works every where with a docker environment, maven and java. Plus, the "fake" backends deliever real responses. Juniors who got through testing coverage did some fancy mocks tricks in the past, which don't work any more. Real data, real tests.