Skip to content

Commit

Permalink
chore: add instructions for updating golden files (#728)
Browse files Browse the repository at this point in the history
* chore: add instructions for updating golden files
  • Loading branch information
mpeddada1 authored Jan 17, 2025
1 parent d9a10e4 commit b0640dc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/contributor/howto-guide-generated-code-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ go -C generator/ run ./cmd/sidekick refreshall -project-root .. && cargo fmt

Then run the unit tests and send a PR with whatever changed.

## Update golden files

The golden files live under `generator/testdata`.

Run:

```bash
go -C generator test ./...
```

After updating the golden files, make sure to run `git diff generator/testdata`
to verify the changes before committing them.

## The Glorious Future

Someday `sidekick` will be stable enough that (a) it will not be part of the
Expand Down

0 comments on commit b0640dc

Please sign in to comment.