mardi 21 juillet 2020

How to test integration layer with microservices in docker

My project is written in Java and works with an elastic search that starts as a separate docker container.

Our current integration/component tests are written in python, they start our app and elastic search as different docker containers, runs tests, and shuts down both of the containers.

I think it'll be much better to rewrite these tests on java because it's easy for developers when you have a single language throughout a project + you'll get and IDE support. But in this case, it's not clear how to run a docker container from Java test in order to test against it.

Aucun commentaire:

Enregistrer un commentaire