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

Code behind file will not create with Specflow latest version #2735

Open SonjaVanDenHeijkant opened 5 months ago

SonjaVanDenHeijkant commented 5 months ago

SpecFlow Version

3.9.74

Which test runner are you using?

NUnit

Test Runner Version Number

3.9.74

.NET Implementation

.NET 6.0

Project Format of the SpecFlow project

Classic project format using <PackageReference> tags

.feature.cs files are generated using

SpecFlowSingleFileGenerator custom tool

Test Execution Method

Visual Studio Test Explorer

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

No response

Issue Description

When creating a new feature file, the specflow extension does not make a pending action for the *.feature.cs file (code behind). Therefore, the build will not succeed.

Steps to Reproduce

Action: Create a new feature file with specflow version 3.9.74 Result: No pending action for the .feature.cs file (code behind). Build will not succeed because of missing .feature.cs file

Action: Create a new feature file with specflow version 3.9.69 Result: Pending action for the *.feature.cs file (code behind). Build will succeed

Link to Repro Project

No response