-
Notifications
You must be signed in to change notification settings - Fork 748
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
VS2015 - Can't run tests because COMException was unhandled #534
Comments
As a side note. The tests still work fine in Visual Studio 2013 |
just out of interest, have you rebooted since the upgrade? |
Hi, thanks for your reply. I have tried that yes I'm afraid. |
I am also getting the same error using VS2015 Update1. |
Happening here, too. Would the crash dump be of any use? |
I expect this is actually an issue for the extension and not specflow itself. https://github.com/techtalk/SpecFlow.VisualStudio Don't think the crash dump is going to be much use (at least wouldn't help me much). it needs someone to look at the issue in the debugger I expect. I might have time over the weekend, but no guarantees. Anyone who has the issue could grab the source for the extension and build it and run through a debugger and see if it is something obvious. |
It makes sense that this would have to do with the extension. I gave debugging a whirl and came up with a big mess of exceptions in external code. I can't makes heads or tails of it. Maybe someone with experience debugging VS extensions will have better luck. |
Hmm... I have just tried to repro this. I had installed vs2015, but did not have the specflow extension installed. I updated vs2015 to update 1, then installed the extension and it all seems to work ok. Have you tried removing the extension and readding it? |
Hi Sam thanks for checking this out. If I get a chance later today i will remote into my work machine and try reinstalling the extension, but I don't know if it will help because we went straight to VS2015.1 there was never a 2015 install on my computer without Update 1 installed either. Could be an issue that only occurs for people that installed Update 1 and VS2015 during the same install? |
I tested on windows ten at home. I know someone at will had a similar issue
|
I was using Windows 8.1 |
I'm using windows 7 and originally had just vs2015 installed. |
I followed the recommended steps of uninstalling and installing specflow extension, but I am still unable to run any spec flow tests. Here is what I am getting when I try to run a specflow test: OS: Windows 7 Enterprise Everything worked fine prior to update 1. |
Thank you for contacting Jace Web Technologies. Our office will be closed from 12/22 to 12/29. We hope you enjoy the holidays with your loved ones! Stay safe this holiday season and we look forward to servicing you next week into the new year! Jace Web Technologies |
Hi, |
Same issue for me, to workaround had to switch to MSTest for execution. |
And same here. Recently installed Update 1 then installed SpecRun, immediately had problem. Switching unitTestProvider back to "MsTest" makes my tests work again, which is good, but what I'm currently trying to accomplish is to evaluate SpecRun. So I'd like it to work so I can evaluate and then buy 4 licenses (hint hint!) |
We're taking a look at this issue. Rob (the OP) states that he has this problem with new projects as well as existing projects, and that tests work in VS 2013. It would be great to get more feedback from all of you so we can try and narrow down the cause. Judging by the posts in this thread, a common theme seems to be Update 1 for VS 2015. However, samholder reports having had no issues with VS 2015 Update 1. Any insights into why this might be the case would obviously be appreciated :) Could those of you who are experiencing this problem tell us:
Thank you in advance for your help. |
Just to be clear I was not using SpecRun, it wasn't clear that that was On Thu, Jan 7, 2016 at 2:09 PM, Stephen McCafferty <notifications@github.com
|
Hi Stephen. I've been using SpecFlow for several months successfully, in Visual Studio (Really like it by the way. Gonna make a big wad of CUI tests. Planning I installed SpecRun in December for a day, tests ran successfully, I then I install Update 1 for VS2015 a week ago. I then installed SpecRun again yesterday (not without some adventure Thank you! -Patrick On Thu, Jan 7, 2016 at 9:09 AM, Stephen McCafferty <notifications@github.com
|
Using VS2015 Update 1, Windows 8.1 I've tried new project with just SpecFlow and SpecRun and just single step and it still doesn't work, switching to MsTests fixes that, this is the exception from event log
|
Error for me occurs on: Mine's a new project so never had the tests running before. Still using MSTest until issue resolved. |
@jiristeidl thanks for the StackTrace. |
Yes, seems exactly the same: Application: te.processhost.managed.exe -Patrick On Fri, Jan 8, 2016 at 7:03 AM, Andreas Willich notifications@github.com
|
Bit more Information: Packages installed. OS: Windows 7 Enterprise When I select to Run All form Test Explorer window all seems to run just fine.
However when I try Run Selected Tests by right clicking on a test I want to run in Test Explorer window, it fails with following message as reported by others.
Hope this helps. |
Thanks for the info. So there is only one bug. We could reproduce the bug and are working on a fix. |
Is this an issue in specflow or in specrun? We have recently seen an issue
|
This is an issue in the Visual Studio Integration of SpecRun. |
OK thanks. I'll try and get repro details and file another bug
|
We have fixed the bug. |
Fantastic, thank you. -Patrick On Tue, Jan 12, 2016 at 6:24 AM, Andreas Willich notifications@github.com
|
We have release SpecFlow+Runner 1.3 beta11. This fixes this issues. |
Thanks for the update. However I've got another error like this:
Not sure if this could be caused by some misconfiguration, so here is a part of my packages.config: <package id="NUnit" version="3.0.0" targetFramework="net45" />
<package id="SpecFlow" version="2.0.0-preview20151221-10" targetFramework="net45" />
<package id="SpecFlow.NUnit" version="2.0.0-preview20151221-10" targetFramework="net45" />
<package id="SpecRun.Runner" version="1.3.0-beta11" targetFramework="net45" />
<package id="SpecRun.SpecFlow" version="1.3.0-beta11" targetFramework="net45" /> and app.config: <specFlow>
<unitTestProvider name="SpecRun" /> <!-- optionally SpecRun+NUnit
or SpecRun+MsTest here -->
<plugins>
<add name="SpecRun" />
</plugins>
</specFlow> All the packages were installed via Nuget Package Manager Console. |
Is your test project 4.5? It could be a small packaging bug we found yesterday. We put the SpecRun.SpecFlow.dll for 4.5.2 into the net45 folder of the NuGet package. You should see a warning about a library with a higher Framework Version. Can you change your test project to 4.5.2? |
It helped. Thank you so much for the quick response. |
Why is this closed? Did you guys fix the packaging issue? |
I'll second @carlin-q-scott |
@carlin-q-scott: The packaging issue is solved with beta20 of SpecRun. https://www.nuget.org/packages/SpecRun.Runner/1.3.0-beta20 I asked @gasparnagy to close it, because the issue was about Debugging in VS 2015. @rushalias: .Net 4.0 is not supported by SpecFlow 2.0. If you have to stick with .Net 4.0 you have to use SpecFlow 1.9. For that there is a seperate package to use: https://www.nuget.org/packages/SpecRun.SpecFlow.1-9-0/1.3.0-beta20 |
By the way, the fix has also worked for me. I've installed the new install -Patrick On Mon, Jan 25, 2016 at 3:19 PM, Andreas Willich notifications@github.com
|
@SabotageAndi Thanks for the followup. using suggested package of https://www.nuget.org/packages/SpecRun.SpecFlow.1-9-0/1.3.0-beta20 works just fine with .Net 4.0. Thanks again. |
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. |
I have recently upgraded to Visual Studio 2015 Update 1
After going through a few necessary steps to get it compiling, any test I try to run seems to abort almost immidietly. On debugging the tests I seem to hit this exception every time.
Did I miss a step when upgrading? Am I doing anything wrong? I have these NuGet packages installed.
To be sure it wasn't part of my current test solution that I am maintaining, I created a brand new solution with a test project in. And wrote a simple test which threw the exact same exception.
Any response would be greatly appreciated.
Kind Regards,
Rob
The text was updated successfully, but these errors were encountered: