D
D
Dessanndes2016-06-03 14:07:49
Python
Dessanndes, 2016-06-03 14:07:49

How to test a project on a microservice architecture?

We are developing a project, recently adopted such a thing as a microservice architecture.
I did not find in the vastness of the mighty and great information about testing microservices and the connections between them.
Services communicate using RestFullAPI.
It would be very interesting to know the public opinion on this matter.
The option with stubs and mocks does not work, since it would be nice to raise a test environment where the necessary services are running, test the communication between them and that everything goes smoothly.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-06-03
@alexey-m-ukolov

it would be nice to raise a test environment where the necessary services are running, test the communication between them and that everything goes smoothly.
So, in fact, they test. What is the specific question?
You have some kind of entry point that receives data as input and returns some kind of result. You need to make sure that the correct result is returned for specific inputs using some client. If we are talking about a browser, then you can take Selenium or some kind of headless analogue if javascript is not needed for interaction.
But honestly, I think it's a waste of time. In any case, each of your services must take into account that the surrounding services may disappear at any time. If this is taken into account within the service and these cases are covered by internal tests on mocks, then, of course, it is possible to test real interaction, but the price / quality ratio in this case turns out to be wild.

S
Sergey Blokhin, 2016-06-03
@TITnet

What exactly is your question? In the choice of tools for testing? It all depends on your knowledge.
You can take Unirest in manual mode and run requests based on it. It is possible to take some RunScope a thread. Lots of options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question