SpecFlowOSS / SpecFlow

#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
https://www.specflow.org/
Other
2.25k stars 754 forks source link

Missing [assembly:RuntimePlugin] attribute in TechTalk.SpecFlow.NUnit.SpecFlowPlugin, Version=3.5.0.0, #2215

Closed jkb114 closed 3 years ago

jkb114 commented 4 years ago

SpecFlow Version:

Used Test Runner

Version number: NUnit.ConsoleRunner.NetCore" Version="3.12.0-beta1"

Project Format of the SpecFlow project

.feature.cs files are generated using

Visual Studio Version

Enable SpecFlowSingleFileGenerator Custom Tool option in Visual Studio extension settings

Are the latest Visual Studio updates installed?

.NET Framework:

Test Execution Method:



### Issue Description
<!-- PLEASE PROVIDE AS MUCH INFORMATION AS POSSIBLE ON THE ISSUE -->
When Running command line test runner getting the following errors 
 Missing [assembly:RuntimePlugin] attribute in TechTalk.SpecFlow.NUnit.SpecFlowPlugin, Version=3.5.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41. Please check https://go.specflow.org/doc-plugins for details.

Errors, Failures and Warnings

1) SetUp Error :xxxxxx_NUnitAssemblyHooks
BoDi.ObjectContainerException : Interface cannot be resolved: TechTalk.SpecFlow.UnitTestProvider.IUnitTestRuntimeProvider('nunit')
   at BoDi.ObjectContainer.TypeRegistration.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
   at BoDi.ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath)
   at BoDi.ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name)
   at BoDi.ObjectContainer.Resolve(Type typeToResolve, String name)
   at BoDi.ObjectContainer.Resolve[T](String name)
   at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.CreateGlobalContainer(Assembly testAssembly, IRuntimeConfigurationProvider configurationProvider)
   at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder)
   at TechTalk.SpecFlow.TestRunnerManager.GetTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder, Boolean createIfMissing)
   at TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(Assembly testAssembly, IContainerBuilder containerBuilder)
   at LBG_Mortgages_Automation_BDD_NUnitAssemblyHooks.AssemblyInitialize() in D:\WS\TEST113410270\xxxx\obj\Debug\netcoreapp3.1\NUnit.AssemblyHooks.cs:line 20
### Steps to Reproduce
<!-- PLEASE DESCRIBE THE STEPS REQUIRED TO REPRODUCE THIS ISSUE, IF POSSIBLE -->
Running command after building on jenkins pipeline
### Repro Project
<!-- PLEASE INCLUDE A LINK TO A PROJECT THAT DEMONSTRATES THE ISSUE YOU ARE REPORTING, IF POSSIBLE 
For information on how to include a useful repro, refer to https://stackoverflow.com/help/mcve
-->
SabotageAndi commented 4 years ago

You stated that you are using the SpecFlow+ Runner. You can't use the nunit-console runner with it. The nunit-console runner works only with NUnit.

SabotageAndi commented 3 years ago

Closed because of inactivity

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.