Skip to content

Repository files navigation

Verify.Quibble

DiscussionsBuild statusNuGet Status

Extends Verify to allow comparison of text via Quibble.

See Milestones for release notes.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

Developed using JetBrains IDEs

JetBrains logo.

NuGet

Usage

Initialize

[ModuleInitializer]publicstaticvoidInit(){VerifierSettings.UseStrictJson();VerifyQuibble.Initialize();}

snippet source | anchor

UseStrictJson is required since Verify by default uses a variant of json which Quibble cannot parse.

Verify

Given an existing verified file:

{
"Property1": "ValueA",
"Property2": "ValueB"
}

And a test:

[Test]publicasyncTaskSample(){vartarget=newTarget(Property1:"ValueC",Property2:"ValueD");awaitVerifier.Verify(target);}

Diff results

When the comparison fails, the resulting differences will be included in the test result displayed to the user.

Results do not match.
Use DiffEngineTray to verify files.
Differences:
Received: Tests.Sample.received.json
Verified: Tests.Sample.verified.json
Compare Result:
String value difference at $.Property1: ValueC vs ValueA.
String value difference at $.Property2: ValueD vs ValueB.

Icon

Argument designed by Vinence Studio from The Noun Project.

About

Extends Verify to allow comparison of text via Quibble.

Topics

Resources

Code of conduct

Stars

3 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages