Skip to content

Unit Testing, CI and CD

Himanshu Joshi edited this page Mar 2, 2022 · 4 revisions

Unit testing the API gateway:

After all the services are up and running.

Go to the shell of the api-gateway container through the docker app or run.
cd api-gatway
docker-compose backend \bin\sh
Run the following command to run the tests.
pytest

CI setup with Github Actions.

Basic unit tests are automatically run when ever a push or pull request is made into the develop branch. Screenshot For running unit tests when a push or pull is updated on the api-gateway branch.

Unit test result for Java services and code coverages:

Clone this wiki locally