{"id":20765467,"url":"https://github.com/gasparnagy/specflow.xunitadapter","last_synced_at":"2025-04-30T09:51:49.538Z","repository":{"id":137713412,"uuid":"88161455","full_name":"gasparnagy/SpecFlow.xUnitAdapter","owner":"gasparnagy","description":"xUnit adapter for SpecFlow that allows running scenarios without code generation","archived":false,"fork":false,"pushed_at":"2018-05-25T07:21:10.000Z","size":295,"stargazers_count":22,"open_issues_count":10,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-15T07:04:11.296Z","etag":null,"topics":["plugin","specflow","xunit"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gasparnagy.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":"2017-04-13T12:14:43.000Z","updated_at":"2024-12-01T22:39:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccb62246-fc4a-4f5c-9649-e88c1b78f5bf","html_url":"https://github.com/gasparnagy/SpecFlow.xUnitAdapter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparnagy%2FSpecFlow.xUnitAdapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparnagy%2FSpecFlow.xUnitAdapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparnagy%2FSpecFlow.xUnitAdapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gasparnagy%2FSpecFlow.xUnitAdapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gasparnagy","download_url":"https://codeload.github.com/gasparnagy/SpecFlow.xUnitAdapter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251679957,"owners_count":21626630,"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":["plugin","specflow","xunit"],"created_at":"2024-11-17T11:17:04.723Z","updated_at":"2025-04-30T09:51:49.484Z","avatar_url":"https://github.com/gasparnagy.png","language":"C#","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2FHWS4JADYFZN"],"categories":[],"sub_categories":[],"readme":"﻿# SpecFlow.xUnitAdapter\n\nSpecFlow.xUnitAdapter is an xUnit adapter for SpecFlow that allows running \nscenarios without code generation.\n\nSupports:\n\n* SpecFlow v2.3.1\n* xUnit v2.3 or above\n\nRequires:\n\n* .NET Framework 4.5 or above (new project format has limited support, see below)\n* Visual Studio for Windows\n\nLicense: Apache (https://github.com/gasparnagy/SpecFlow.xUnitAdapter/blob/master/LICENSE)\n\nNuGet: https://www.nuget.org/packages/SpecFlow.xUnitAdapter\n\nSee my blog post (http://gasparnagy.com/2017/04/specflow-without-code-behind-files/) for more information and background, \nyou can also look at the complete example at https://github.com/gasparnagy/SpecFlow.xUnitAdapter/tree/master/sample/MyCalculator or watch the \nvideo demo on [YouTube](https://youtu.be/wGuoVqG3I8M).\n\n[![Build status](https://ci.appveyor.com/api/projects/status/oshtcr06501euoih/branch/master?svg=true)](https://ci.appveyor.com/project/gasparnagy/specflow-xunitadapter/branch/master)\n\n## Donate\n\nIf you like this plugin and would like to support developing this or similar plugins, please consider donating the project. (For receiving an invoice for your donation, please [contact me](http://gasparnagy.com/about/) upfront.)\n\n[![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=2FHWS4JADYFZN)\n\n## Usage\n\n### Install plugin from NuGet into your SpecFlow project.\n\n    PM\u003e Install-Package SpecFlow.xUnitAdapter\n  \n### Disable code-behind code generation\n\nTo disable the code-behind code generation, you have to REMOVE (set it to \nempty) the \"SpecFlowSingleFileGenerator\" \"Custom Tool\" setting on the file \nproperties of all feature files in Visual Studio.\n\nIf you do this, Visual Studio will automatically delete the code behind files \nand removes them from the project.\n\n### Make sure the feature files have a `SpecFlowFeature` or `SpecFlowEmbeddedFeature` build action.\n\nThe SpecFlow.xUnitAdapter currently processes feature files in the folder (or \nsubfolders) of the SpecFlow project assembly (typically in bin\\Debug) and when\nthey are embedded into the assembly. \n\nTo achieve that, you should change the `Build Action` setting of \nthe feature files to `SpecFlowFeature` if you want them to not be\nembedded, or `SpecFlowEmbeddedFeature` if you want them to be embedded\nin the assembly.\n\n### Setup for new project file format\n\nWhen using the new project file format for .NET 4.5+ projects, the build actions `SpecFlowFeature`\nand `SpecFlowEmbeddedFeature` are not available. Instead of that, you need to set the\n`Copy to Output Directory` setting to `Copy if newer` to ensure that the feature files are\ncopied to the output directory. (Source information will not be available in this case.)\n\nAlso to be able to use the extension, you have to manually add the file [SpecFlow.xUnitAdapter.Config.cs](https://raw.githubusercontent.com/gasparnagy/SpecFlow.xUnitAdapter/master/src/NuGetPackages/SpecFlow.xUnitAdapter/SpecFlow.xUnitAdapter.Config.cs)\nto the project.\n\n### Install xUnit Visual Studio adapter \n\nIn order to run the tests from the Visual Studio Test Explorer Window, you \ncan install the xUnit Visual Studio adapter. \n\n    PM\u003e Install-Package xunit.runner.visualstudio\n\n## Limitations\n\nThe adapter is currently in BETA and there are some limitations.\n\n1. If you use `SpecFlowFeature`: As Visual Studio Test Explorer window only triggers the re-discovery of tests when the output assembly changes, if you only change the feature files, but nothing else in the code, you need to _Rebuild_ the project in order to see the changes. (This is important only if the change is related to the discovered tests, so for example if you change the scenario name or the examples section of a scenario outline.)\n2. The adapter currently does not load the project-level feature file language setting (but assumes `en-US`).\n3. For feature files with `#language` setting, the setting will only be used for data conversions if it is a specific culture (e.g. `de-AT`). For neutral languages (e.g. `de`), currently `en-US` is used for conversions.\n4. The new project file format is not fully supported, see details in section *Setup for new project file format* above.\n\nFor diagnosing test discovery errors, you can add the following setting to the `App.config` file of the SpecFlow project. With this setting, the test discovery errors are displayed in the `Tests` pane of the output window.\n\n    \u003cappSettings\u003e\n      \u003cadd key=\"xunit.diagnosticMessages\" value=\"true\"/\u003e\n    \u003c/appSettings\u003e\n\n## Release History\n\n* See https://github.com/gasparnagy/SpecFlow.xUnitAdapter/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasparnagy%2Fspecflow.xunitadapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgasparnagy%2Fspecflow.xunitadapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgasparnagy%2Fspecflow.xunitadapter/lists"}