Skip to content

Commit eaf8083

Browse files
authored
Update README.md
1 parent b06cd5b commit eaf8083

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,14 @@ Downloading demos + running regression tests:
199199

200200
bin/regression-tests.sh
201201

202+
#### Updating `.golden` files
203+
204+
The file
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:
207+
208+
go test -run TestDemoInfoCs -update
209+
202210
### Debugging
203211

204212
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

Comments
 (0)