matrix-rust-sdk/testing/matrix-sdk-integration-testing
Jonas Platte d680b331d0 Make tokio a workspace dependency 2023-03-28 21:08:57 +02:00
..
assets chore: Use fully-qualified Docker image names 2023-02-14 10:19:06 +01:00
src base: Rename RoomType to RoomState 2023-03-13 13:17:15 +01:00
Cargo.toml Make tokio a workspace dependency 2023-03-28 21:08:57 +02:00
README.md Fix a typo in the integration tests readme 2023-03-06 09:29:23 +01:00

README.md

Matrix SDK integration test

Requirements

This requires a synapse backend with a ci patched configuration. You can easily get it up and running with docker-compose via:

docker-compose -f assets/docker-compose.yml up -d
docker-compose -f assets/docker-compose.yml logs --tail 100 -f

Patches You can see the patches we do to configuration (namely activate registration and resetting rate limits), check out what assets/ci-start.sh changes.

Running

The integration tests can be run with cargo test or cargo nextest run.

The integration tests expect the environment variables HOMESERVER_URL to be the HTTP URL to access the synapse server and HOMESERVER_DOMAIN to be set to the domain configured in that server. If you are using the provided docker-compose, the default will be fine.

Maintenance

To drop the database of your docker-compose run:

docker-compose -f assets/docker-compose.yml stop
docker volume rm -f assets_matrix-rust-sdk-ci-data

or simply:

docker-compose -f assets/docker-compose.yml down -v