You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/development/contributing_guide.md
+2-51Lines changed: 2 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -334,46 +334,9 @@ For more details about other configurations, see the [Docker-specific documentat
334
334
335
335
## Run the integration tests ([Complement](https://github.com/matrix-org/complement)).
336
336
337
-
[Complement](https://github.com/matrix-org/complement) is a suite of black box tests that can be run on any homeserver implementation. It can also be thought of as end-to-end (e2e) tests.
337
+
See our [Complement docs](https://github.com/element-hq/synapse/tree/develop/complement)
338
+
for how to use the `./scripts-dev/complement.sh` test runner script.
338
339
339
-
It's often nice to develop on Synapse and write Complement tests at the same time.
340
-
Here is how to run your local Synapse checkout against your local Complement checkout.
341
-
342
-
(checkout [`complement`](https://github.com/matrix-org/complement) alongside your `synapse` checkout)
To run a specific test file, you can pass the test name at the end of the command. The name passed comes from the naming structure in your Complement tests. If you're unsure of the name, you can do a full run and copy it from the test output:
(Remove `-hide successful-tests` if you don't want to hide successful tests.)
390
353
391
354
392
-
### Access database for homeserver after Complement test runs.
393
-
394
-
If you're curious what the database looks like after you run some tests, here are some steps to get you going in Synapse:
395
-
396
-
1. In your Complement test comment out `defer deployment.Destroy(t)` and replace with `defer time.Sleep(2 * time.Hour)` to keep the homeserver running after the tests complete
397
-
1. Start the Complement tests
398
-
1. Find the name of the container, `docker ps -f name=complement_` (this will filter for just the Compelement related Docker containers)
399
-
1. Access the container replacing the name with what you found in the previous step: `docker exec -it complement_1_hs_with_application_service.hs1_2 /bin/bash`
0 commit comments