{"id":37470356,"url":"https://github.com/spectresystems/spectre.verify.extensions","last_synced_at":"2026-01-16T07:15:17.532Z","repository":{"id":55123011,"uuid":"326959589","full_name":"spectresystems/spectre.verify.extensions","owner":"spectresystems","description":"Extensions for Verify","archived":false,"fork":false,"pushed_at":"2025-03-22T18:39:48.000Z","size":35,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-22T03:49:20.228Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/spectresystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/funding.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"patriksvensson"}},"created_at":"2021-01-05T10:10:15.000Z","updated_at":"2025-07-22T08:05:10.000Z","dependencies_parsed_at":"2024-01-17T12:10:43.165Z","dependency_job_id":"466219ca-8725-4c36-b1cc-b66e98bebeed","html_url":"https://github.com/spectresystems/spectre.verify.extensions","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/spectresystems/spectre.verify.extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectresystems%2Fspectre.verify.extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectresystems%2Fspectre.verify.extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectresystems%2Fspectre.verify.extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectresystems%2Fspectre.verify.extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spectresystems","download_url":"https://codeload.github.com/spectresystems/spectre.verify.extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectresystems%2Fspectre.verify.extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-16T07:15:16.808Z","updated_at":"2026-01-16T07:15:17.524Z","avatar_url":"https://github.com/spectresystems.png","language":"C#","funding_links":["https://github.com/sponsors/patriksvensson"],"categories":[],"sub_categories":[],"readme":"# Spectre.Verify.Extensions\n\n![Continuous Integration](https://github.com/spectresystems/spectre.verify.extensions/workflows/Continuous%20Integration/badge.svg)\n[![NuGet Status](https://img.shields.io/nuget/v/Spectre.Verify.Extensions.svg)](https://www.nuget.org/packages/Spectre.Verify.Extensions/)\n\nAdd an attribute driven file naming convention to [Verify](https://github.com/VerifyTests/Verify).\n\n\n## NuGet package\n\nhttps://nuget.org/packages/Spectre.Verify.Extensions/\n\n\n## Usage\n\nAt startup pass `Expectations.Initialize` to [VerifierSettings.DerivePathInfo](https://github.com/VerifyTests/Verify/blob/master/docs/naming.md#derivepathinfo):\n\n\u003c!-- snippet: Initialize --\u003e\n\u003ca id='snippet-Initialize'\u003e\u003c/a\u003e\n```cs\npublic static class VerifyConfig\n{\n    [ModuleInitializer]\n    public static void Init()\n    {\n        Verifier.DerivePathInfo(Expectations.Initialize);\n    }\n}\n```\n\u003csup\u003e\u003ca href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L40-L49' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Initialize' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nThen the following test\n\n\u003c!-- snippet: Usage --\u003e\n\u003ca id='snippet-Usage'\u003e\u003c/a\u003e\n```cs\n[ExpectationPath(\"Foo\")]\npublic static class ExpectationTests\n{\n    public static class MyOtherTestClass\n    {\n        [ExpectationPath(\"Bar/Qux\")]\n        public class MyOtherOtherTestClass\n        {\n            [Fact]\n            [Expectation(\"Waldo\")]\n            public async Task Test1()\n            {\n                await Verifier.Verify(\"w00t\");\n            }\n        }\n    }\n\n    [ExpectationPath(\"Baz\")]\n    public class YetAnotherTestClass\n    {\n        [Fact]\n        [Expectation(\"Corgi\", \"Lol\")]\n        public async Task Test1()\n        {\n            await Verifier.Verify(\"lol\");\n        }\n    }\n}\n```\n\u003csup\u003e\u003ca href='/src/Spectre.Verify.Extensions.Tests/ExpectationTests.cs#L9-L38' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Usage' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nWill produce the following directory structure:\n\n```\nProjectDir\n  - Expectations\n    - Foo\n      - Bar\n        - Qux\n          - Waldo.Output.verified.txt\n      - Baz\n        - Corgi.Lol.verified.txt\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectresystems%2Fspectre.verify.extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspectresystems%2Fspectre.verify.extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectresystems%2Fspectre.verify.extensions/lists"}