Trying to build a Verify integration, but not sure where to start #598
Replies: 2 comments 1 reply
-
Bump 🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
-
the closes thing to AssertSnapshotMatches is comparers https://github.com/VerifyTests/Verify/blob/main/docs/comparer.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
Uh oh!
There was an error while loading. Please reload this page.
-
I've been building a property-based testing framework and I've been using some of the primitives it exposes to add an easy way to take snapshots from random data.
For example;
GenSnapshotAttribute
inherits fromXunit.Fact
To do the snapshotting, you need to register some global configuration. This example shows how I was able to integrate with Snapshooter:
Func<ISnapshot, Task>
GenSnapshotAttribute
captures the filename of the class)ISnapshot
structure is defined here: https://github.com/nth-commit/GalaxyCheck/blob/a798c9e7fbdecbbc96eaa24d5974a299c4e4849a/src/GalaxyCheck.Xunit/Configuration/IGlobalConfiguration.cs#L29-L42Is it possible to do something like this with Verify?
I've been looking at how the other integrations are building (e.g. Verify.Xunit), and it seems they are dependent on
InnerVerify
, which is an internal to the package, and not accessible by a third-party.Beta Was this translation helpful? Give feedback.
All reactions