#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
When a feature file has been amended, and has got a table included in the steps (that is not the example one), and then rebuild the project, visual studio will compare the other feature files that have got table included, and keeps getting the error, because it regenerates the table number each time for the feature.cs files.
Error - [SpecFlow] System.UnauthorizedAccessException: Access to the path is denied.
Works if I take off the read only on the feature.cs files, but really annoying to review for check-ins.
Sorry if this is a bad questions but, is there any easier way to stop this from happening? or rename the tables so that it doesn't get changed all the time?
Steps to Reproduce
Add a step, on a feature file, thats got a table added (that's not the example one)
When I have entered employee details
| FirstName | LastName | Email |
| John | O'Doe | johndoe1234@nomail.com |
do this to a few more feature files
then build the project,
getting the error
for the affected feature file, I have to check them out and then compare the differences
SpecFlow Version
3.9.74
Which test runner are you using?
NUnit
Test Runner Version Number
3.13.3
.NET Implementation
.NET 5.0
Package References
`
Project Format of the SpecFlow project
Sdk-style project format
Test Execution Method
Visual Studio Test Explorer
SpecFlow Section in app.config or content of specflow.json
{ "generator": { "addNonParallelizableMarkerForTags": [ "nonparallel" ] }, "bindingCulture": { "name": "en-us" }, "language": { "feature": "en-us" }, "pluginparameters": { "variantkey": "Browser" }, "stepAssemblies": [ { "assembly": "SpecFlow.Contrib.Variants.IntegrationTests.SharedBindings" } ] }
Issue Description
VS2019 - 16.11.23 Not using MS Build Integration, as per document - https://docs.specflow.org/projects/specflow/en/latest/Tools/Generate-Tests-From-MsBuild.html
Similar to this issue - https://github.com/SpecFlowOSS/SpecFlow/issues/561
When a feature file has been amended, and has got a table included in the steps (that is not the example one), and then rebuild the project, visual studio will compare the other feature files that have got table included, and keeps getting the error, because it regenerates the table number each time for the feature.cs files.
Error - [SpecFlow] System.UnauthorizedAccessException: Access to the path is denied.
Works if I take off the read only on the feature.cs files, but really annoying to review for check-ins.
Sorry if this is a bad questions but, is there any easier way to stop this from happening? or rename the tables so that it doesn't get changed all the time?
Steps to Reproduce
Add a step, on a feature file, thats got a table added (that's not the example one)
do this to a few more feature files
then build the project, getting the error
for the affected feature file, I have to check them out and then compare the differences
before build - table1
after build - changes to table 38
Link to Repro Project
N/A