SpecFlow
SpecFlow copied to clipboard
Error during binding discovery
SpecFlow Version
3.0.213
Which test runner are you using?
SpecFlow+ Runner
Test Runner Version Number
3.0.213
.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
Visual Studio Test Explorer
SpecFlow Section in app.config or content of specflow.json
No response
Issue Description
When I try to launch project tests via context menu item, the next message appears in the output window:
Warning: AndDiscoveryProviderSucceed: Error during binding discovery. Command executed: C:\Repos\SpecFlow_OldCSProj_FeatureInSubfolder\ClassLibrary1\bin\Debug> c:\users\Админ\appdata\local\microsoft\visualstudio\17.0_79fda9b8\extensions\d235fk3u.1av\Connectors\V1\specflow-vs.exe discovery C:\Repos\SpecFlow_OldCSProj_FeatureInSubfolder\ClassLibrary1\bin\Debug\ClassLibrary1.dll "" Exit code: 3 Message: Exception in:SpecFlow.VisualStudio.SpecFlowConnector.Discovery.SpecFlowV30Discoverer Error: Cannot find method CreateGlobalContainer on type TechTalk.SpecFlow.Infrastructure.ContainerBuilder Exception: System.ArgumentException StackTrace: at SpecFlow.VisualStudio.SpecFlowConnector.ReflectionExtensions.ReflectionCallMethod[T](Object obj, String methodName, Type[] parameterTypes, Object[] args) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector\ReflectionExtensions.cs:line 30 at SpecFlow.VisualStudio.SpecFlowConnector.ReflectionExtensions.ReflectionCallMethod[T](Object obj, String methodName, Object[] args) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector\ReflectionExtensions.cs:line 8 at SpecFlow.VisualStudio.SpecFlowConnector.Discovery.RemotingBaseDiscoverer.GetBindingRegistry(Assembly testAssembly, String configFilePath) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector.V1\Discovery\RemotingBaseDiscoverer.cs:line 39 at SpecFlow.VisualStudio.SpecFlowConnector.Discovery.BaseDiscoverer.DiscoverInternal(Assembly testAssembly, String testAssemblyPath, String configFilePath) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector\Discovery\BaseDiscoverer.cs:line 52 at SpecFlow.VisualStudio.SpecFlowConnector.Discovery.RemotingBaseDiscoverer.Discover(String testAssemblyPath, String configFilePath) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector.V1\Discovery\RemotingBaseDiscoverer.cs:line 12 at SpecFlow.VisualStudio.SpecFlowConnector.Discovery.DiscoveryProcessor.Process() in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector.V1\Discovery\DiscoveryProcessor.cs:line 16 at SpecFlow.VisualStudio.SpecFlowConnector.ConsoleRunner.EntryPoint(String[] args) in D:\a\1\s\Connectors\SpecFlow.VisualStudio.SpecFlowConnector\ConsoleRunner.cs:line 31 Cannot deserialize: Warning: AndDiscoveryProviderSucceed: The project bindings (e.g. step definitions) could not be discovered. Navigation, step completion and other features are disabled. Please check the error message above and report to https://github.com/SpecFlowOSS/SpecFlow.VS/issues if you cannot fix.
I used the the sample project found in this topic since I have a similar problem but with a newer version of Specflow (3.9.8 + NUnit3) in a different IDE (Jetbrains Rider). However, in the latter case I see no such messages: the Test Explorer is empty, as with this sample project.
Do you know what might cause this issue?
Steps to Reproduce
- Clone the project
- Build the solution
- Select "Run Tests" from the context menu.
- Find the results on "Output" tab choosing "Specflow" as the source
Link to Repro Project
No response
Not sure whether it is related to this tool or Specflow.VS, though.