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

Impl custom golden paths #3

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

aVikingTrex
Copy link

@aVikingTrex aVikingTrex commented Nov 30, 2024

This PR implements custom names for golden files. The crux of this change is the addition of a new macro case branch per assert for handling the new name.
The provided name is postfixed to the path produced by the current _function_path macro in place of the actual function name.

New tests have also been written for these new cases. This should resolve #2

Trent Graw added 3 commits November 30, 2024 14:36
Implement a new macro case for each assertion and the _new_goldie macros. This path extends the current _function_path
return value. What this achieves is custom named files in the same place golden tests would be previously written to.
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.

Organising golden files
1 participant