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.23k stars 752 forks source link

Autogenerated Code-Behind Files Access denied due to TFS as Source Control #2568

Closed MarcelL94 closed 2 years ago

MarcelL94 commented 2 years ago

SpecFlow Version

3.9

Which test runner are you using?

MSTest

Test Runner Version Number

3.0

.NET Implementation

equal or greater .NET Framework 4.6.1

Project Format of the SpecFlow project

Classic project format using packages.config

.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

Issue Description

When using TFS as Source Control u cant regenerate code behind files due to access denied. TFS uses Write Protection to determine checked out and non checked out files.

grafik

Steps to Reproduce

Use TFS Source Control and checked in Feature with Code Behind -> Edit anything that requires changes to ur auto generated source code.

Link to Repro Project

No response

SabotageAndi commented 2 years ago

There is no need to check in the code-behind files. They are regenerated on build automatically.

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