Identity/Number handling #1403
Unanswered
matthewhancock-st
asked this question in
Q&A
Replies: 1 comment
-
does this approach work for you? https://github.com/VerifyTests/Verify/blob/main/docs/numeric-ids.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have identity database IDs dynamically generated in a unit test stored as a
long
however it does not triggerAddScrubber
, so I don't have a way to override numerical data to predictable values.The closest I can get is
VerifierSettings.MemberConverter
, but at the static level I can't reliably override values because if the tests are run as a group or one at a time (or in a parallel) a counter won't return the same values.I've tried reading all of the documentation and looking through the source code, but can't find a way to achieve this, so any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions