{"id":19751968,"url":"https://github.com/romfos/ngherkin","last_synced_at":"2025-02-28T01:18:51.318Z","repository":{"id":212753398,"uuid":"728418111","full_name":"Romfos/NGherkin","owner":"Romfos","description":"Modern Gherkin-based BDD framework for .NET ecosystem","archived":false,"fork":false,"pushed_at":"2024-11-20T16:21:35.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-10T21:42:52.979Z","etag":null,"topics":["bdd","cucumber","dotnet","executable-specification","gherkin","spec","test-automation-framework","testing","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/Romfos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2023-12-06T22:38:14.000Z","updated_at":"2024-11-20T16:21:32.000Z","dependencies_parsed_at":"2024-01-19T06:14:46.881Z","dependency_job_id":"227576f1-3e2d-47f3-91f9-0ab2db1f8c6e","html_url":"https://github.com/Romfos/NGherkin","commit_stats":{"total_commits":54,"total_committers":1,"mean_commits":54.0,"dds":0.0,"last_synced_commit":"3f2fce2c2d7f77b5379f433ae74f09c44d89f2df"},"previous_names":["romfos/ngherkin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FNGherkin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FNGherkin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FNGherkin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Romfos%2FNGherkin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Romfos","download_url":"https://codeload.github.com/Romfos/NGherkin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241084172,"owners_count":19907066,"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":["bdd","cucumber","dotnet","executable-specification","gherkin","spec","test-automation-framework","testing","tests"],"created_at":"2024-11-12T02:46:56.731Z","updated_at":"2025-02-28T01:18:51.295Z","avatar_url":"https://github.com/Romfos.png","language":"C#","readme":"# Overview\n\nModern Gherkin-based BDD framework for .NET ecosystem\n\n[![.github/workflows/build.yml](https://github.com/Romfos/NGherkin/actions/workflows/build.yml/badge.svg)](https://github.com/Romfos/NGherkin/actions/workflows/build.yml)\n\n[![NGherkin](https://img.shields.io/nuget/v/NGherkin?label=NGherkin)](https://www.nuget.org/packages/NGherkin)\\\n[![NGherkin.TestAdapter](https://img.shields.io/nuget/v/NGherkin.TestAdapter?label=NGherkin.TestAdapter)](https://www.nuget.org/packages/NGherkin.TestAdapter)\n\n# Requirements\n- NET 8+ (.NET 9 is recommended)\n- Visual Studio 2022 or Visual Studio Code or any other editor with .NET support\n\nOptional: gherking syntax plugin for your code editor:\n1) [Reqnroll plugin](https://marketplace.visualstudio.com/items?itemName=Reqnroll.ReqnrollForVisualStudio2022)  for Visual Studio 2022\n2) [Cucumber plugin](https://marketplace.visualstudio.com/items?itemName=CucumberOpen.cucumber-official) for Visual Studio Code or any other plugin\n\n# How to use\n1) Create new class library for .NET 8+\n2) Add following nuget packages:\n- https://www.nuget.org/packages/NGherkin\n- https://www.nuget.org/packages/NGherkin.TestAdapter\n- https://www.nuget.org/packages/Microsoft.NET.Test.Sdk\n3) Create startup class and register dependencies. Example:\n  \n```csharp\npublic sealed class Startup : StartupBase\n{\n    public override void Configure(IServiceCollection services)\n    {\n        services.AddGherkinFeatures();\n        services.AddGherkinSteps();\n    }\n}\n\n```\n\n4) Add feature files\n5) Add classes with steps. Example:\n\n```csharp\n[Steps]\ninternal sealed class StepClass\n{\n    [Given(\"given1\")]\n    public void Given()\n    {\n    }\n\n    [When(\"this is when step with '(.*)' argument an '(.*)' argument\")]\n    public void When1(int arg1, string arg2, DataTable dataTable)\n    {\n    }\n\n    [Then(\"then1\")]\n    public void Then1()\n    {\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromfos%2Fngherkin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromfos%2Fngherkin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromfos%2Fngherkin/lists"}