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
Update documentation for writing tests for unstable MSCs (#784)
* Remove documentation surrounding MSC build tags
We no longer use them as of #666
* Document test writing for unstable MSCs
* Add currently-known blacklist tags
So those adding new tests know what to blacklist out of the box.
Copy file name to clipboardExpand all lines: ONBOARDING.md
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -185,10 +185,6 @@ To conditionally skip an entire *file* based on the homeserver being run, add a
185
185
```go
186
186
// +build !dendrite_blacklist
187
187
```
188
-
You can also do this based on features for MSC tests (which means you must run Complement *with* this tag for these tests *to run*):
189
-
```go
190
-
// +build msc_2836
191
-
```
192
188
See [GH Actions](https://github.com/matrix-org/complement/blob/master/.github/workflows/ci.yaml) for an example of how this is used for different homeservers in practice.
193
189
194
190
### Why do we use `t.Errorf` sometimes and `t.Fatalf` other times?
@@ -210,11 +206,11 @@ For Goland:
210
206
* Under "Run"->"Edit Configurations..."->"Edit Configuration Templates..."->"Go Test", and add `COMPLEMENT_BASE_IMAGE=complement-dendrite:latest` to "Environment"
211
207
* Then you can right-click on any test file or test case and "Run <testname>".
212
208
213
-
209
+
214
210
### How do I make the linter checks pass?
215
211
216
212
Use [`goimports`](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) to sort imports and format in the style of `gofmt`.
0 commit comments