docs: document the new invocation to update the call tracer test cases

This commit is contained in:
Ilias Tsatiris 2026-01-09 13:38:54 +02:00
parent c1876b93b8
commit 392b62b88c

View file

@ -7,4 +7,12 @@ In the Geth console do:
let tx = '0x...'
loadScript('makeTest.js')
makeTest(tx, { tracer: 'callTracer' })
```
```
## Updating the existing call tracer test cases
In case a change is introduced to the output/format of the call tracer, you may use the following invocation to update the expected output with the current output:
```bash
UPDATE_TESTS=1 go test ./eth/tracers/internal/tracetest
```
This will blindly "accept" the current trace response as the correct one, so manual inspection of the updated outputs is advised to ensure they are as expected.