Closed SabotageAndi closed 5 years ago
As mentioned in https://github.com/techtalk/SpecFlow/issues/1234#issuecomment-415065219 There are problems with SpecFlow 2.1 and plugins with the VS Extension.
The best way is to use the MSBuild integration. You are using MSBuild for building .NET projects. We have an integration, that hooks into MSBuild to generate the code-behind files when you compile the project.
The actual docu is here: https://specflow.org/documentation/Generate-Tests-from-MsBuild/
The documentation for SpecFlow 2.1 is here: https://github.com/techtalk/SpecFlow/wiki/Generate-Tests-from-MsBuild/5c2868bb359118359b0f954d20522fb18546732c
I would highly recommend to update to a newer version of SpecFlow. 2.1 is more than 2 years old. We simply have the manpower to support so an old version.
@SabotageAndi , Thank you. I will look into the docs and meanwhile, i have already started upgrading.
Edit: I just observed the SpecFlow.Tools.MsBuild.Generation package version available requires Specflow version of minimum 2.3.2. So, i have no other option than upgrading my specflow
Hi, I was getting the initial error of a missing plugin, for which I followed the instructions given by @SabotageAndi and the code-behind files were regenerated successfully. But now I have a different problem, which started after installing SpecFlow.Tools.MsBuild.Generation and making changes to the .csproj file as described in the documentation. I had to upgrade from SpecFlow 2.1 to 2.4 as well.
The error reads as follows : ".csproj : error : The attribute "Update" in element <Compile> is unrecognized". There is also a 'load failed - Project requires user input. Reload the project for more information' error on the solution explorer, next to my projects. I am unable to reload the project, as there's a pop up warning - Operation cannot be completed. PS: I am using VS Professional 2015
Please advise. Thank you.
Are you using SpecFlow+ Runner @PuzzledRays? From the SpecFlow+ Runner 1.8.1 changelog: 1.8.1 2018-08-24
Bug fixes:
The current stable version of SpecFlow+ Runner is 1.8.2.
These are the packages I have installed currently for my project.
`
So you do have SpecFlow+ Runner installed, but it's a version later than 1.8.0...
@PuzzledRays The SpecFlow.Tools.MsBuild.Generation
package does only work in VS2017, because we are using MSBuild features that are only available with the MSBuild version of VS2017.
So what is the highest recomended version of SpecFlow+ for VS2015 ? Was the initial error, I was seeing ('Unable to find plugin in the plugin search path: SpecRun.') because I was using SpecFlow2.1 and SpecRun1.5.2, which are presumably older versions ?
SpecFlow+ works with VS2015.
Only the NuGet package SpecFlow.Tools.MsBuild.Generation
doesn't work with VS2017. This is part of the Open Source project.
You have to do the MSBuild stuff manually. Here is the old documentation: https://github.com/techtalk/SpecFlow/wiki/Generate-Tests-from-MsBuild/61e26a504a10a238155e7015f3041459cf255a76
closed because of inactivity and I think it is resolved.
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.
From https://github.com/techtalk/SpecFlow/issues/1234#issuecomment-414808500
SpecFlow Version:
Used Test Runner
Version number:
Visual Studio Version
Are the latest Visual Studio updates installed?
.NET Framework:
Issue Description
I am having same issue on changing feature file. NUnit: 3.8.1 SpecFlow: 2.1.0 Temp files are there in temp folder. ..Contrib.SpecFlow.Selenium.NUnit.SpecFlowPlugin.dll is there in the project. Username doesn't have a special character.