#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
SpecFlow Version
3.9
Which test runner are you using?
NUnit
Test Runner Version Number
3.12.0
.NET Implementation
equal or greater .NET Framework 4.6.1
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Command line – PLEASE SPECIFY THE FULL COMMAND LINE
SpecFlow Section in app.config or content of specflow.json
{ "bindingCulture": { "name": "en-us" }, "language": { "feature": "en-us" }, "stepAssemblies": [ { "assembly": "Com.Vanderlande.ADB.TestStepDefinitions" } ] }
Issue Description
A custom SpecFlow plugin with:
[assembly: GeneratorPlugin(typeof(Com.Vanderlande.ATF.Plugin.Gherkin.SpecFlow.AtfTestGeneratorPlugin))][assembly: GeneratorPlugin(typeof(Com.Vanderlande.ATF.Plugin.Gherkin.SpecFlow.AtfTestGeneratorPlugin))]
results in the following error when running the scenario with the NUnit Console Runner:
C:\git\vi_adb\Maven\Test\adb-atf\Output\Debug\Com.Vanderlande.ATF.Plugin.Gherkin.SpecFlow.3.9.SpecFlowPlugin.dll -> Missing [assembly:RuntimePlugin] attribute in Com.Vanderlande.ATF.Plugin.Gherkin.SpecFlow.3.9.SpecFlowPlugin, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null. Please check https://go.specflow.org/doc-plugins for details. -> Loading plugin C:\git\vi_adb\Maven\Test\adb-atf\Output\Debug\TechTalk.SpecFlow.NUnit.SpecFlowPlugin.dll -> Loading plugin C:\git\vi_adb\Maven\Test\adb-atf\Output\Debug\Com.Vanderlande.ADB.GherkinSuites.dll -> Using specflow.json
This occurs only when running the NUnit Console Runner on a Windows VM . Running locally (on a laptop) does not cause the issue.
Steps to Reproduce
.
Link to Repro Project
No response