Skip to content

golden: accept -update for updating files#235

Merged
dnephin merged 1 commit intogotestyourself:mainfrom
dnephin:golden-flag
May 3, 2022
Merged

golden: accept -update for updating files#235
dnephin merged 1 commit intogotestyourself:mainfrom
dnephin:golden-flag

Conversation

@dnephin
Copy link
Member

@dnephin dnephin commented May 1, 2022

The -test.update-golden flag is long enough that it can be a challenge for people to remember, especially when golden files are not updated frequently. I've seen other implementations of this pattern use just the -update flag, which was easier to remember.

This PR keeps support for the existing -test.update-golden flag, but also adds -update as an option for updating golden files.

In the future there could be other auto-update operations that could make use of this same flag.

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.

2 participants