Skip to content

Document golden test update workflow#878

Open
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:docs-test-goldens
Open

Document golden test update workflow#878
Haihan-Jiang wants to merge 1 commit into
google:masterfrom
Haihan-Jiang:docs-test-goldens

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

What

Adds a README note for adding and updating golden tests. It covers the core testdata/*.jsonnet / .golden workflow, the formatter and linter update commands, and the expected Goldens_Updated subtest behavior in formatter/linter update mode.

Fixes #441.
Fixes #425.

Testing

  • git diff --check -- README.md
  • go test . -run TestEval -update
  • go test ./...
  • checked the formatter/linter update commands against the current test behavior

@Haihan-Jiang Haihan-Jiang marked this pull request as ready for review May 26, 2026 04:40
@Haihan-Jiang
Copy link
Copy Markdown
Author

This is ready for review. The golden test update workflow is now documented, and the visible checks are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document adding and regenerating tests in the README Explain how to add tests and regen goldens in the README

1 participant