gmlgo: update tests to use golden files
silbinarywolf opened this issue · 0 comments
silbinarywolf commented
The problem
Currently updating tests is a pain and not very intuitive. We store the golden test data all inside gmlgo_test
. It might make more sense to follow suit with how this Medium post describes doing tests:
https://medium.com/soon-london/testing-with-golden-files-in-go-7fccc71c43d3
ie. Have a .golden
file alongside my gmlgo_gen.go
files and make it so we can also just update .golden
files by running tests with an -update
flag (kinda like Jest snapshots)