Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New RECREATE_GOLDEN_FILES #54

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Conversation

newhoggy
Copy link
Collaborator

@newhoggy newhoggy commented Jan 3, 2024

New RECREATE_GOLDEN_FILES environment variable support which will causes golden tests to always create golden files replacing any existing golden files

Sometimes a change to a project involve making changes to many existing golden files. As the changes are intentional, it is tedious to have to use CREATE_GOLDEN_FILES=1 cabal test, delete the offending golden files and then re-run to recreate them with the correct contents. RECREATE_GOLDEN_FILES=1 cabal test will remove the need to delete and re-run tests interatively.

@newhoggy newhoggy changed the title New RECREATE_GOLDEN_FILES which will causes golden tests to always create golden files replacing any existing golden files New RECREATE_GOLDEN_FILES Jan 3, 2024
@newhoggy newhoggy force-pushed the newhoggy/add-RECREATE_GOLDEN_FILES-env branch from a6f9103 to 7df40ca Compare January 3, 2024 10:15
src/Hedgehog/Extras/Test/Golden.hs Outdated Show resolved Hide resolved
@newhoggy newhoggy force-pushed the newhoggy/add-RECREATE_GOLDEN_FILES-env branch from 2e49c81 to 199edc5 Compare January 3, 2024 13:39
@newhoggy newhoggy merged commit b09f7cc into main Jan 3, 2024
16 checks passed
@newhoggy newhoggy deleted the newhoggy/add-RECREATE_GOLDEN_FILES-env branch January 3, 2024 13:50
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.

3 participants