A golden-file test compares a program’s outputs with reviewed values stored with the code — the golden file — each with a tolerance and the provenance of the value; any difference beyond the tolerance fails the test, and changing a golden value is itself a reviewed change.
fig_goldtest.py.fig_goldtest.py.