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
"Run SpecFlow Scenarios" does not work with ReSharper 9 #435
Comments
I've updated the commands (see commit SpecFlowOSS/SpecFlow.VisualStudio@e250890), but it did not help... It shows an error like
I have no further idea. I fear that this will not work (it was a hack anyway)... If anyone has a good idea, go ahead and try to fix it. |
I believe your commit has a typo - Hope it helps. |
Not sure if this is related or not, but this command doesn't work with Resharper 8.2 either. It's not Resharper 9 specific. I had a working system, upgraded to latest "Specflow for Visual Studio 2013" v2015.1.1 and started getting the "No tests found in file" error. Specflow trace: |
@lindavz28 yes. please try to do it. |
@gasparnagy SpecFlowOSS/SpecFlow.VisualStudio#4 (Edit) - Figured it out, need to set experimental hive option in RS9 installer. Will test tomorrow morning |
@lindavz28 super, thx |
@gasparnagy Made my life a bit harder by trying to get XUnit working on RS9, but successfully ran specflow tests with RS9! 👍 😄 |
@lindavz28 super! thx. I merged it. |
@gasparnagy When will you be updating the VS gallery? |
I have updated the VS gallery with the new version now. |
HI |
Hi [11:23:47.6127725] ReSharper6TestRunnerGateway: test tool error: System.Runtime.InteropServices.COMException (0x80004005): Command "ReSharper.ReSharper_ReSharper_UnitTest_DebugContext" is not valid. resharper debug information, in case it is helpful: JetBrains ReSharper Platform 6 Build 6.0.20141219.120158 on 2014-12-19 12:56:02Z Application Packages: Copyright © 2015 JetBrains. All rights reserved. |
hit reply on the wrong email @shaundodimead? 😆 |
Yup :) fml - there's a github feature I didn't know existed... |
The plugin being used is:TechTalk.SpecFlow.Vs2010Integration My fixes were in the newer SpecFlow.VisualStudio plugin. I'm guessing this is not backwards compatible with 2010/2012... I'll need On Wed, May 27, 2015 at 10:26 PM, stickleprojects notifications@github.com
|
@lindavz28 yes, the update is made for VS2013 and VS2015. but @stickleprojects mentioned also VS2013. Now I'm confused. (I can make an updated release until Wed, but then I'm off for two weeks.) |
Further investigation, I noticed that Resharper did not have Keyboard commands similar to "unit", "test", "debug" mentioned above. Reinstall of latest version of R#9 fixed the issue in VS2013. Tested using latest Github source and Gallery install. |
FYI, it works for me.
|
I get slightly different error:
Tried to reinstall specflow and resharper with no success. Any tips? |
@MattiLehtinen Go to Tools > Options > Keyboard bindings (Might be under Editor section). Unless Resharper has gone and changed the command again for Resharper 9.2, it should work.... Final thing you can try is uninstall Resharper and install the specific version 9.1.3: |
@lindavz28 The command seems to be there: I get the same error with VS2013 too. |
@lindavz28 I installed Resharper 9.1.3 to VS2013 and it works. So I guess there's some breaking change on ReSharper 9.2. |
@MattiLehtinen Glad you managed to get it working! I suspect a breaking change in 9.2 as well, though it's interesting that the command looks identical to what's in the options list. It might also be a bug on the Specflow side... I'll have a look at 9.2 when I get a chance. |
Hi any news on getting resharper 9.2 running with visual studio 2010 and specflow? |
Had the same issue as @MattiLehtinen with VS 2013, ReSharper 9.2 and SpecFlow 2015.1.2. Fixed for now by reverting back to ReSharper 9.1.3. |
The same issue in VS 2015, ReSharper (9.2 and 10) and SpecFlow 2015.1.2 Ctrl-T,R/D works from |
Hi guys, Visual Studio version does not matter. What matters is the Resharper version. Resharper 9.2+ not working with Specflow 2015. The reason is: Specflow uses Resharper 9.1.2's key for running unit test: While on ReSharper 9.2+ the key has changed into I'll submit a pull request to get Specflow updated with Resharper 9.2+. The code change will be something like: Note 2 difference my code vs lindavz28's code
|
How did that update go @rubig, did you test your update using Resharper 9.1 and 9.2? I don't follow your logic though - my code as follows - any version that is 9 or more should use the command you've mentioned. Doesn't matter if it's 9.1, 9.2 or 9.3
Resharper 9 changed to use the following: That should be the case for 9.1, 9.2 and 9.3. There's no difference between 9.1 and 9.2 - if there was I would've implemented a fix immediately. That's the problem :) Comparing 9.2: With 9.1.3: So I have 9.1.3 installed in my main VS 2015 (not the hive) and the command is identical. |
@rubig I would love to get this fixed btw, so if you have got something working please send that PR through 👍 Latest discussion here - please continue in this thread rather than the closed issue I have the stack trace and the command being run is "ReSharper.ReSharper_UnitTestRunContext" It works if you run it in a command window, but not from the Specflow extension. 😭 |
@rubig @lindavz28 yes please. don't forget that the PR should be sent to the https://github.com/techtalk/specflow.visualstudio repo. |
Upvoting this please 👍 -- it degrades the user experience for SpecFlow! 😭 |
We release SpecFlow v2 tomorrow and the next step will be to make an update on the VS integration. |
I agree with @dorothyvaliga. I recently upgraded tot VS2015 en ReSharper 10 and although there are workarounds available it's very frustrating that it's not possible to run the features from the context menu. |
Working now with VS 15 Specflow 2 Resharper 9.1.3 |
Thank you @dorothyvaliga ! :) How about you @lazytesting ? |
It's now working partially for me with V2 (in combination with NUnit 3): When I open the feature file and right click in the editor window and select run/debug still nothing happens (no errors either). When I run them from the solution explorer (with right click on the feature file) the tests are working. |
@darrencauthon @dorothyvaliga @lazytesting See this issue which is the most current thread: @gavinlees said: |
Nice! I’ll give it a try on Monday. |
@lindavz28 However, I can confirm this version of Specflow still has issue in running tests with Resharper 9.2. This leads me to think my solution above is not the correct fix for this issue. I'll give Specflow 2 a try and see if it can run nicely with Resharper 9.2. |
I'm using Specflow 2 with Resharper 10 in VS 2015. Any word on how to make this work? |
Hi all - I am using and SpecFLow 2015.1.2 - 2015/05/26 Any ideas about how to make this work for my pair? Thanks in advance |
@IcodeNet for me that didn't work. But it helped me finding a better workaround. I set the Test Runner Tool to VisualStudio2012 and installed the Nunit VS plugin. So I'm now able to run the test from the context menus. But as they don't run in ReSharper I don't have the ReSharper test result view. |
Does not work for Reshaper 2016.2.2 Pressing "run unit tests" in the context menu gives the error message "The operation could not be completed. Not implemented" The same error if you do it by keyboard shortcut. I am running VS2015 and the "Specflow for Visual Studio 2015 plugin" |
Same here, does not work. Set Test Runner Tool to Resharper doesn't work. |
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. |
"Run SpecFlow Scenarios" does not work with ReSharper 9.
See https://groups.google.com/forum/#!topic/specflow/fmxx8nZPxx8 for details
The text was updated successfully, but these errors were encountered: