@@ -293,18 +293,6 @@ try installing the failing modules individually::
293
293
294
294
pip install -e "module-name"
295
295
296
- Once this is done, you may wish to run Synapse's unit tests to
297
- check that everything is installed correctly::
298
-
299
- python -m twisted.trial tests
300
-
301
- This should end with a 'PASSED' result (note that exact numbers will
302
- differ)::
303
-
304
- Ran 1337 tests in 716.064s
305
-
306
- PASSED (skips=15, successes=1322)
307
-
308
296
We recommend using the demo which starts 3 federated instances running on ports `8080 ` - `8082 `
309
297
310
298
./demo/start.sh
@@ -324,6 +312,30 @@ If you just want to start a single instance of the app and run it directly::
324
312
python -m synapse.app.homeserver --config-path homeserver.yaml
325
313
326
314
315
+ Running the unit tests
316
+ ======================
317
+
318
+ After getting up and running, you may wish to run Synapse's unit tests to
319
+ check that everything is installed correctly::
320
+
321
+ python -m twisted.trial tests
322
+
323
+ This should end with a 'PASSED' result (note that exact numbers will
324
+ differ)::
325
+
326
+ Ran 1337 tests in 716.064s
327
+
328
+ PASSED (skips=15, successes=1322)
329
+
330
+ To run a specific test::
331
+
332
+ python -m twisted.trial tests.storage.test_redaction
333
+ python -m twisted.trial tests.handlers.test_presence.PresenceJoinTestCase.test_remote_gets_presence_when_local_user_joins
334
+
335
+ To see logger output from the app while the tests run, set ``SYNAPSE_TEST_LOG_LEVEL ``
336
+ and the resulting logs will be in ``_trial_temp/test.log ``::
337
+
338
+ SYNAPSE_TEST_LOG_LEVEL=DEBUG python -m twisted.trial tests
327
339
328
340
329
341
Running the Integration Tests
0 commit comments