{"id":18937407,"url":"https://github.com/verifytests/verify.quibble","last_synced_at":"2025-04-15T18:31:59.939Z","repository":{"id":42575937,"uuid":"399355968","full_name":"VerifyTests/Verify.Quibble","owner":"VerifyTests","description":"Extends Verify to allow comparison of text via Quibble.","archived":false,"fork":false,"pushed_at":"2025-04-14T11:24:40.000Z","size":429,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:29:59.080Z","etag":null,"topics":["quibble","snapshot-testing","verify-tests"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VerifyTests.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":"code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"VerifyTests"}},"created_at":"2021-08-24T06:15:13.000Z","updated_at":"2025-04-14T11:24:44.000Z","dependencies_parsed_at":"2023-02-19T16:16:07.327Z","dependency_job_id":"22d3656e-8657-42d1-b734-5b95406467cd","html_url":"https://github.com/VerifyTests/Verify.Quibble","commit_stats":{"total_commits":162,"total_committers":3,"mean_commits":54.0,"dds":0.08024691358024694,"last_synced_commit":"b950b752900a0af2665f58b1e26b28733c74dc13"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Quibble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Quibble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Quibble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Quibble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.Quibble/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129224,"owners_count":21217307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["quibble","snapshot-testing","verify-tests"],"created_at":"2024-11-08T12:11:03.290Z","updated_at":"2025-04-15T18:31:54.926Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/VerifyTests"],"categories":[],"sub_categories":[],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e Verify.Quibble\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://ci.appveyor.com/api/projects/status/a87e2jpm0s4f34gu?svg=true)](https://ci.appveyor.com/project/SimonCropp/Verify-Quibble)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.Quibble.svg)](https://www.nuget.org/packages/Verify.Quibble/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow [comparison](https://github.com/VerifyTests/Verify/blob/master/docs/comparer.md) of text via [Quibble](https://github.com/nrkno/Quibble).\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\n\n## NuGet package\n\nhttps://nuget.org/packages/Verify.Quibble/\n\n\n## Usage\n\n\n### Initialize\n\n\u003c!-- snippet: enable --\u003e\n\u003ca id='snippet-enable'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Init()\n{\n    VerifierSettings.UseStrictJson();\n    VerifyQuibble.Initialize();\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInit.cs#L3-L12' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-enable' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n`UseStrictJson` is required since Verify by default [uses a variant of json](https://github.com/VerifyTests/Verify/blob/main/docs/serializer-settings.md#not-valid-json) which Quibble cannot parse.\n\n\n### Verify\n\nGiven an existing verified file:\n\n```json\n{\n  \"Property1\": \"ValueA\",\n  \"Property2\": \"ValueB\"\n}\n```\n\nAnd a test:\n\n```cs\n[Test]\npublic async Task Sample()\n{\n    var target = new Target(\n        Property1: \"ValueC\",\n        Property2: \"ValueD\");\n    await Verifier.Verify(target);\n}\n```\n\n\n### Diff results\n\nWhen the comparison fails, the resulting differences will be included in the test result displayed to the user.\n\n```txt\nResults do not match.\nUse DiffEngineTray to verify files.\nDifferences:\nReceived: Tests.Sample.received.json\nVerified: Tests.Sample.verified.json\nCompare Result:\nString value difference at $.Property1: ValueC vs ValueA.\nString value difference at $.Property2: ValueD vs ValueB.\n```\n\n\n## Icon\n\n[Argument](https://thenounproject.com/term/argument/2311124/) designed by [Vinence Studio](https://thenounproject.com/vinzencestudio/) from [The Noun Project](https://thenounproject.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.quibble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.quibble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.quibble/lists"}