You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have a .Contains() method that would check just part of the golden file? I have a golden file where some parts will change (like generic help text from a CLI) and all I really want to check for is "success" or similar.
I know that means its not really using the golden file but it would make the test less fragile.
Thoughts?
The text was updated successfully, but these errors were encountered:
@danawoodman I think maybe the right design would be to add a WithCompareFn option that allows you to pass in your own compare function. The comparison lines
would then call the compare function. That way, you could override how it does a comparison between the actualData and the expectedData (which could just do a substring comparison in your case).
Would it be possible to have a
.Contains()
method that would check just part of the golden file? I have a golden file where some parts will change (like generic help text from a CLI) and all I really want to check for is "success" or similar.I know that means its not really using the golden file but it would make the test less fragile.
Thoughts?
The text was updated successfully, but these errors were encountered: