Answer the question
In order to leave comments, you need to log in
How to organize integration tests in a microservice application?
There is a microservice application with a certain zoo of technologies (3 API applications, a frontend for the public part, a frontend admin panel).
All API applications are covered by unit and integration tests. We were given the task of organizing testing through UI tests in the browser emulator on important application screens. With testing technology stacks, I settled on a combination of WebdriverIO and Mocha. Covered one screen with tests.
The question arose: how to organize comfortable work with tests for front-end developers?
In mode:
Answer the question
In order to leave comments, you need to log in
You make a docker-compose file in which you raise containers with all the necessary services (DB, API, ..., selenium / whatever).
You make a container that mounts a folder with tests into itself and runs them.
Then the tests will be launched, roughly speaking, with one command docker-compose up % service_name%
In CI, this can be launched in the same way (at least in travis / jenkins)
About storage - it’s most logical to keep this is in a separate turnip, if the front and different APIs are in different repositories, these are not front tests.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question