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
The file [`test/default.golden`](https://github.com/markus-wa/demoinfocs-golang/blob/master/test/default.golden) file contains a serialized output of all expected game events in `test/cs-demos/default.dem`.
205
205
206
-
To update the [`test/default.golden`](https://github.com/markus-wa/demoinfocs-golang/blob/master/test/default.golden) file which contains a serialized output of all expected game events in `test/cs-demos/default.dem` you can run the following command:
206
+
If there is a change to game events (new fields etc.) it is necessary to update this file so the regression tests pass.
207
+
To update it you can run the following command:
207
208
208
209
go test -run TestDemoInfoCs -update
209
210
211
+
Please don't update the `.golden` file if you are not sure it's required. Maybe the failing CI is just pointing out a regression.
212
+
210
213
### Debugging
211
214
212
215
You can use the build tag `debugdemoinfocs` (i.e. `go test -tags debugdemoinfocs -v`) to print out debugging information - such as game events or unhandled demo-messages - during the parsing process.<br>
0 commit comments