This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ Add instructions for running Complement with `gotestfmt`-formatted output locally.
Original file line number Diff line number Diff line change @@ -310,6 +310,20 @@ The above will run a monolithic (single-process) Synapse with SQLite as the data
310
310
- Passing `WORKERS=1` as an environment variable to use a workerised setup instead. This option implies the use of Postgres.
311
311
312
312
313
+ ### Prettier formatting with `gotestfmt`
314
+
315
+ If you want to format the output of the tests the same way as it looks in CI,
316
+ install [gotestfmt](https://github.com/haveyoudebuggedit/gotestfmt).
317
+
318
+ You can then use this incantation to format the tests appropriately:
319
+
320
+ ```sh
321
+ COMPLEMENT_DIR=../complement ./scripts-dev/complement.sh -json | gotestfmt -hide successful-tests
322
+ ```
323
+
324
+ (Remove `-hide successful-tests` if you don' t want to hide successful tests.)
325
+
326
+
313
327
# ## Access database for homeserver after Complement test runs.
314
328
315
329
If you' re curious what the database looks like after you run some tests, here are some steps to get you going in Synapse:
You can’t perform that action at this time.
0 commit comments