Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Add make test-update-goldenfiles target #2045

Merged

Conversation

carolynvs
Copy link
Contributor

@carolynvs carolynvs commented May 17, 2018

This is a follow-on for #2041 (comment).

Add a new make target test-update-goldenfiles that runs the svcat tests and updates the golden files and document it in the devguide.

Doc preview available at: https://deploy-preview-2045--svc-cat.netlify.com/docs/devguide/#golden-files

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 17, 2018
@carolynvs
Copy link
Contributor Author

@teaguecole let me know if this matches what you were expecting!

@teaguecole
Copy link
Contributor

Yeah, this is great! I was just expecting a more official go doc about golden files as opposed to just a medium blog post... but to integrate it with make is awesome and consistent.

@carolynvs
Copy link
Contributor Author

Oh yeah I don't have anything official. I just know that they use it in the go stdlib tests themselves, and I have used that pattern in other repos, like golang/dep.

Copy link
Contributor

@MHBauer MHBauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 makefile target. LGTM

@n3wscott n3wscott added the LGTM1 label May 18, 2018
@jboyd01 jboyd01 added the LGTM2 label May 21, 2018
@jboyd01 jboyd01 merged commit 286b7e6 into kubernetes-retired:master May 21, 2018
@carolynvs carolynvs deleted the update-goldenfiles-target branch October 4, 2018 21:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. LGTM1 LGTM2 size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants