-
I'm fairly new with using this library. While it's super handy dandy, one problem I have so far is that all the recorded snapshot images are named This makes the snapshot images kind of useless as source artifacts because one cannot easily relate anyone to a set of UI traits. For example if I want to enumerate through combinations of light/dark mode and size class and generate all images, I wish the files are named something like So far I haven't been able to figure out how to achieve this easily through the public APIs. Some guidance can be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @yukonblue, you can provide a custom name for the snapshots by providing the However, it will be on you to make sure you have unique names for your snapshots. |
Beta Was this translation helpful? Give feedback.
Hi @yukonblue, you can provide a custom name for the snapshots by providing the
named
argument toassertSnapshot
:swift-snapshot-testing/Sources/SnapshotTesting/AssertSnapshot.swift
Line 61 in 2d0d95e
However, it will be on you to make sure you have unique names for your snapshots.