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.22k stars 751 forks source link

SpecFlow stopped working after VS 2022 Version 17.6.2 #2710

Closed Vic152 closed 1 year ago

Vic152 commented 1 year ago

SpecFlow Version

3.9.74

Which test runner are you using?

xUnit

Test Runner Version Number

2.4.5

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Classic project format using packages.config

.feature.cs files are generated using

SpecFlowSingleFileGenerator custom tool

Test Execution Method

Command line – PLEASE SPECIFY THE FULL COMMAND LINE

SpecFlow Section in app.config or content of specflow.json

n/a

Issue Description

I upgraded VS 2022 and F12 step navigation does not work.

I also started seeing (where previously it just executed):

TechTalk.SpecFlow.BindingException : Error calling binding method 'xxx.xxx.Module(String)': Value cannot be null. (Parameter 'first') Stack Trace: at TechTalk.SpecFlow.Bindings.BindingInvoker.InvokeBinding(IBinding binding, IContextManager contextManager, Object[] arguments, ITestTracer testTracer, TimeSpan& duration) at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStepMatch(BindingMatch match, Object[] arguments, TimeSpan& duration) at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.ExecuteStep(IContextManager contextManager, StepInstance stepInstance) at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnAfterLastStep() at TechTalk.SpecFlow.TestRunner.CollectScenarioErrors() at FM_Alert_BDD.Features.CSPModuleFeature.ScenarioCleanup() at FM_Alert_BDD.Features.CSPModuleFeature.CSPModuleReceivesAnImage(String camera, String module, String[] exampleTags) in xxx\xxx\.feature:line 11

image

Steps to Reproduce

I just upgraded VS 2022

I did rebuild project several times. Reinstalled SpecFlow.

Link to Repro Project

n/a

Vic152 commented 1 year ago

Ah no, forget about it. Red herring.

TechTalk.SpecFlow.BindingException : Error calling binding method 'xxx.xxx.Module(String)': Value cannot be null.

is result of some exception swallowed in the process.

Navigation still does not work.

github-actions[bot] commented 11 months 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.