Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Customize snapshot file name if test run using data provider? #210

Answered by mfn
ls-tyler-roach asked this question in Q&A
Discussion options

Is there a way to customize the name of the snapshot based on a value of some kind? For example I have a test that uses a data provider and generates a bunch of snapshots. Right now they are named after the test with an index number. It would be nice if I could somehow name the file with a value from the data provider to indicate which test file it is. I see you can override the naming function but I don't think that would still be able to do this scenario. Any ideas?

You must be logged in to vote

Pretty sure if you name your datasets, this is already taking into account; did you try that?

Replies: 1 comment 1 reply

Comment options

Pretty sure if you name your datasets, this is already taking into account; did you try that?

You must be logged in to vote
1 reply
Comment options

Didn't even think to try that 🤦🏻 That completely worked, thanks so much!

Answer selected by ls-tyler-roach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /