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

Auto update golden files in test fixtures for cmd tests #609

Open
surajssd opened this issue Mar 7, 2018 · 0 comments
Open

Auto update golden files in test fixtures for cmd tests #609

surajssd opened this issue Mar 7, 2018 · 0 comments

Comments

@surajssd
Copy link
Member

surajssd commented Mar 7, 2018

We can auto update the test fixtures against which we compare the output a.k.a. golden files, just by adding a cmd flag to the tests. Just adding a global flag like following:

var update = flag.Bool("update", false, "update golden files") 

For more info see this 2min snippet of the video.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant