New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specflow Plugin Failure VS2015 and VS2017 #1206
Comments
Regenerating feature files did not help |
As I understand it, you have the VS Extension installed, but you don't have the item templates. Generally I would suggest to update SpecFlow. 2.1 is really old (2 years) and to use the MSBuild Generation (https://specflow.org/documentation/Generate-Tests-from-MsBuild/) |
@kdjjoshi With 2017.2.1 we changed the default Generation Mode to "OutOfProcess". Before it was "AppDomain". But be aware that we will remove the AppDomain generation mode in a future release of the VS Extension. |
@SabotageAndi changing setting to "AppDomain" did not work with having 2017.2.1 specflow extension installed. Fails with below error-
Also tried this using this setting with SpecFlow 2.3 version. It still fails. Is there any plan of fixing this issue happening for SpecFlow and MSTest builds with this version of extension? |
@kdjjoshi So you get this error with SpecFlow 2.3.2 and AppDomain or OutOfProcess generation mode? Can you create a project for me to reproduce this error? You can find older versions of the VS Extension here: https://github.com/techtalk/SpecFlow.VisualStudio/releases |
@SabotageAndi I am using solution with SpecFlow 2.1 , however this issue was reproducible when I upgraded SpecFlow to 2.3.1 only after adding extension 2017.2.1. |
@SabotageAndi Thank you for helpful info. Due to references you mentioned was able to go through other articles related to similar issues. Further more, downgrading SpecFlow Extension to TechTalk.SpecFlow.Vs2015Integration.2017.1.10 (most difficult part) in VS2015 with SpecFlow 2.1 fixed above error. Note - Please forcefully disable updated for SpecFlow extension which gets automatically updated after restart. Since I am no more receiving error while building the project now. Was successfully able to add/edit a test case from feature file and able to build project successfully now. However, when I am running the the test case. It is throwing below error after I execute TC from test explorer. (still on SpecFlow 2.1)
Next Attempt- |
I installed an older version, v2017.2.1 to be precise and things started to flow perfectly again. |
I have .net Core NUnit project on Visual Studio 2017. I am able to run my Selenium Test Project without any issue when running from VS 2017 solution. But I am having same issue when I try to run on TeamCity build trigger. I was able to run test using vstest configuration for .Net but now its broken again. |
@mhossen Please create a new issue. Your comment has nothing to do with this issue. This issue is about the Visual Studio Integration. |
Closed because of inactivity |
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. |
Specflow Plugin Failure VS2015 and VS2017
SpecFlow Version:
Used Test Runner
Visual Studio Version
Are the latest Visual Studio updates installed?
.NET Framework:
Test Execution Method:
<SpecFlow> Error in the .cs StepDefinition File
Repro Project
Issue Description
I have both VS 2015 Update 3 and VS 2017 15.7 installed on my machine. After installing new VS2017 I downloaded the specflow for visual studio 2017 to install in VS 2017 Enterprise (15.7) I am able to build the code after I do getlatest but not when I edit. When I try to Add New Item a new feature file I am not able to do this using VS 2017 I can't see the SpecFlow feature template, or, indeed, any SpecFlow template. I get following error when I am trying to build after I edit/Add a line in the feature file - Above is the error in .cs file for respective feature file. Others in my team are able to build the latest code as well as they are able to edit feature file and build it successfully. How do I fix this issue on my local? I don't see any other updated version of SpecFlow where this issue got fixed. Please advise.
The text was updated successfully, but these errors were encountered: