Skip to content

Integration testing

Kamea has an integration testing suite you can use to check that main features are fully operational, be it on a development or production environment.

Overview

Integration testing is achieved through API tests and UI tests.

Everything related to them can be found in the repository's testing/ folder.

You can find out how to start them locally in the instructions found in the testing/integration-testing/'s readme file.

These tests can be useful for platform monitoring: when they are run regularly, they can help to catch potential bugs early on.

API tests

The API integration tests are performed with jest. They check how the API behaves using HTTP calls, and by simulating devices.

Scheduling the tests

To run these tests regularly and receive reports for the results, we suggest using scheduled CI/CD pipelines.

For example, you could run the tests once a day and have it automatically send the result to a Slack channel (or other form of communication).

You can find an example of running the API tests and calling a Slack webhook in our Gitlab pipelines in the testing/ folder.