mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
docs: document the new invocation to update the call tracer test cases
This commit is contained in:
parent
c1876b93b8
commit
392b62b88c
1 changed files with 9 additions and 1 deletions
|
|
@ -8,3 +8,11 @@ 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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue