Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
ffe24648
Unverified
Commit
ffe24648
authored
2 years ago
by
reivilibre
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add instructions for running Complement with `gotestfmt`-formatted output locally. (#13073)
parent
8ecf6be1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/13073.doc
+1
-0
1 addition, 0 deletions
changelog.d/13073.doc
docs/development/contributing_guide.md
+14
-0
14 additions, 0 deletions
docs/development/contributing_guide.md
with
15 additions
and
0 deletions
changelog.d/13073.doc
0 → 100644
+
1
−
0
View file @
ffe24648
Add instructions for running Complement with `gotestfmt`-formatted output locally.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/development/contributing_guide.md
+
14
−
0
View file @
ffe24648
...
...
@@ -310,6 +310,20 @@ The above will run a monolithic (single-process) Synapse with SQLite as the data
- Passing `
WORKERS=1
` as an environment variable to use a workerised setup instead. This option implies the use of Postgres.
### Prettier formatting with `
gotestfmt
`
If you want to format the output of the tests the same way as it looks in CI,
install [gotestfmt](https://github.com/haveyoudebuggedit/gotestfmt).
You can then use this incantation to format the tests appropriately:
```sh
COMPLEMENT_DIR=../complement ./scripts-dev/complement.sh -json | gotestfmt -hide successful-tests
```
(Remove `
-hide successful-tests
` if you don't want to hide successful tests.)
### Access database for homeserver after Complement test runs.
If you're curious what the database looks like after you run some tests, here are some steps to get you going in Synapse:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment