Z
Z
Zhainar2018-11-19 07:39:38
Functional testing
Zhainar, 2018-11-19 07:39:38

How to write functional tests in a system with microservices?

What is the best way to write functional tests if there are calls to microservices in the system? How can services be blocked? Are there other solutions for system testing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-11-19
@deliro

How can services be blocked?

You won't believe it. Mokami! Services usually communicate over HTTP/gRPC. Here are the mock answers, intercepting the actual sending of the request.
But the best way to write integration tests is to normally raise an isolated instance of the entire infrastructure with fixtures and without mocks. True, it can be very expensive and time consuming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question