matrix-public-archive/test
Eric Eastwood 6c789eae69
Do our best to get the user to the right place and try joining `via` derived server name (#168)
Split out from https://github.com/matrix-org/matrix-public-archive/pull/167
2023-04-11 15:09:44 -05:00
..
dockerfiles Add homeserver selector to room directory landing page (#87) 2022-10-20 02:06:43 -05:00
fixtures Remove `matrix-bot-sdk` usage in tests (#15) 2022-06-09 20:44:57 -05:00
server/matrix-utils Do our best to get the user to the right place and try joining `via` derived server name (#168) 2023-04-11 15:09:44 -05:00
shared/lib Add a way to select time of day (#139) 2023-04-05 04:25:31 -05:00
test-utils Update linting so we don't need omit the context filling name of some variables (#165) 2023-04-07 13:01:20 -05:00
.eslintrc.json WIP: start of tests 2022-02-22 16:06:29 -06:00
README.md Better explain how to get the project and tests to run at this point (#19) 2022-06-10 18:52:12 -05:00
docker-compose.yml Federated homeservers in Docker for e2e tests 2022-02-22 20:25:24 -06:00
e2e-tests.js Refactor tests to use single source of truth ASCII diagram (#164) 2023-04-07 12:52:41 -05:00

README.md

Testing

Setup

If you haven't setup matrix-public-archive yet, see the Setup section in the root README.md

Sorry, this isn't automated yet when you run the tests 🙇

$ docker pull matrixdotorg/synapse:latest
$ docker build -t matrix-public-archive-test-homeserver -f test/dockerfiles/Synapse.Dockerfile test/dockerfiles/

$ docker-compose --project-name matrix_public_archive_test -f test/docker-compose.yml up -d --no-recreate

Running the tests

$ npm run test

Or if you want to keep matrix-public-archive server running after the tests run and explore the output from the interactive URL's printed on the screen, use:

$ npm run test-interactive

Developer utility

$ docker ps --all | grep test_hs
$ docker logs -f --tail 10 matrix_public_archive_test_hs1_1
$ docker logs -f --tail 10 matrix_public_archive_test_hs2_1

$ docker stop matrix_public_archive_test_hs1_1 matrix_public_archive_test_hs2_1
$ docker rm matrix_public_archive_test_hs1_1 matrix_public_archive_test_hs2_1