Thursday, 16 May 2019

Testing micro-services? Share your thoughts.

I've been thinking about the problem of micro services for a while now and I wonder how to test micro services ? Now, this may be a big question so I will elaborate a bit more. I wrote two micro services and I would like to test them. Naturally they depend on other micro-services which depend on others, so before you know it, you start pulling your entire cloud in to your laptop (read CI) and that doesn't scale.What I ended up doing is running some databased via docker-compose and using the staging environment on the other things. Now we are working on the testing capabilities in the company, and other services don't have tests. I think the ideal approach is if each service would have a mocking test kit of a sort, but that is an end goal and not something you start with. Another problem is that mocking is limited in general.I would love if you share your information on how do you do tests?How do you isolate services from others?What do you do when you hit a database layer?I know this problem is hard to discuss without a specific use case, feel free to share yours.

Submitted May 16, 2019 at 12:57PM by qbllr

No comments:

Post a Comment