Skip to content

Conversation

piq9117
Copy link

@piq9117 piq9117 commented Sep 25, 2025

I know the title sounds a bit confusing. This addresses issue #60.

To re-iterate the issue. The test is configurable with the Golden data type. Users can set actualFile and goldenFile as file location output. The problem shows with the cli because it doesn't have access to Golden and makes its own assumptions of the file locations. So when there are changes and hgold -u <golden directory location> is ran it will run but won't update the right files.

One of the solutions, which I think is the path of least resistance is to remove actualFile and goldenFile fields. Then the test application will just decide on the file locations. This opinionated configuration will enable the cli to assert where the files are located.

makes parsing filepaths easier
these filepaths will be decided internally. This will make it easier for
the cli to know which files need to be updated. since the cli doesn't
get the `Golden` configuration
assign default output directory
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.

1 participant