Generate Step Definitions context item missing

4,535 views
Skip to first unread message

Ryan McDonald

unread,
Jul 8, 2013, 9:48:19 AM7/8/13
to spec...@googlegroups.com
Hello,
 
I am using VS 2010 Ultimate edition SP1. I have installed specflow and am showing version 1.9.2.
I do not see the Generate Step Definitions menu item on the context menu when right-clicking inside
my .feature file. Please help!
specflow.png

Oliver Friedrich

unread,
Jul 8, 2013, 3:23:22 PM7/8/13
to spec...@googlegroups.com
Go to Step Definition should do what you want: if a step definition does not exist yet, a modal dialog appears asking if you want to create one.

--


2013/7/8 Ryan McDonald <ryan...@yahoo.com>

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ryan McDonald

unread,
Jul 8, 2013, 5:07:26 PM7/8/13
to spec...@googlegroups.com
Thanks Oliver, I do get the modal dialog, however it only offers to copy the generated code to the clipboard.

Oliver Friedrich

unread,
Jul 9, 2013, 8:42:57 AM7/9/13
to spec...@googlegroups.com
Well, yeah, that's how far the automation goes here. SpecFlow can't really know where you want to put that new step definition, since you can have any number of files to bind those to your steps. Just click yes and paste the code into a class with the [Binding] attribute.

--


2013/7/8 Ryan McDonald <ryan...@yahoo.com>
Thanks Oliver, I do get the modal dialog, however it only offers to copy the generated code to the clipboard.
--

Kris Coleman

unread,
Apr 11, 2014, 9:28:24 AM4/11/14
to spec...@googlegroups.com
Yea Oliver, that couldn't be further from the truth. 

Ryan, here at my office we have been using specflow for a few months. We too used the "Generate Step Definitions" context menu feature all the time. It's the only real easy way to generate step definitions. Without it, specflow isn't worth the trouble. We couldn't find answers when it went missing for us, so this is how we fixed it: 

We right clicked on the project and went to manage nuget packages and installed Specflow.Nunit again for that project alone. Despite having it added to the solution, the new project we created was missing part of the reference. Upon adding the specflow nuget package to the problem project, all was solved and we could generate step definitions again from the context menu.

rtht...@gmail.com

unread,
May 27, 2014, 6:18:25 PM5/27/14
to spec...@googlegroups.com
Kris you are a Star 

uriel twito

unread,
Aug 18, 2014, 3:03:20 AM8/18/14
to spec...@googlegroups.com
did you mange to solve this problem
I am too having this problem when working with silverlight application

בתאריך יום שני, 8 ביולי 2013 16:48:19 UTC+3, מאת Ryan McDonald:

Rui Domingos Ferreira

unread,
Feb 13, 2015, 5:26:15 AM2/13/15
to spec...@googlegroups.com
er... where is upvote? ;)

Thanks Kris

Ovidiu Stan

unread,
Sep 23, 2015, 2:16:52 AM9/23/15
to SpecFlow
Add Specflow package to that project and the "Generate steps" item should appear.

Tomas Trescak

unread,
Oct 9, 2015, 1:46:13 AM10/9/15
to SpecFlow
Not luck for me ;(

I added the Specflow nuget package as well as SpecFlow.Nunit Package and still no menu in VS 2015 Community edition ;(

Gáspár Nagy

unread,
Oct 12, 2015, 2:53:48 AM10/12/15
to SpecFlow
Hi,

The nuget package only used for the SpecFlow runtime and the test generation. For the Visual Studio Integration, you need to install the "SpecFlow for Visual Studio 2015" extension from the Visual Studio gallery (Tools / Extensions, see http://www.specflow.org/getting-started/). It works with the community edition too.

Br,
Gaspar

--

Gaspar Nagy ▪ coach, trainer and bdd addict

emailtwitterlinkedinblog

specflow course: viennakievosloin-your-office

 

elizeus...@motorolasolutions.com

unread,
Feb 25, 2016, 12:36:45 PM2/25/16
to SpecFlow
Hi, 
I have installed "SpecFlow for Visual Studio 2015", but I still do not have "Generate Step Definitions".
This one, which I install is created by TechTalk (http://www.techtalk.at), because Extension and Updates don't find any other extension for SpecFlow.

Can you help me to fix it?

Best regards,
Elek

Sam Holder

unread,
Feb 26, 2016, 2:57:49 AM2/26/16
to specflow
have you installed the nuget package into your project as well as the extension into visual studio?

--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

elizeus...@motorolasolutions.com

unread,
Feb 27, 2016, 8:58:00 AM2/27/16
to SpecFlow
Hi,

Thanks for the idea where to check. It was inspiring. I just find out that my issue was due to two errors:
1) Two entries "unitTestProvider" in app.config - correct configuration I have found on: https://github.com/techtalk/SpecFlow/wiki/Configuration
2) Missing references to TechTalk.SpecFlow.dll - for some reason the nuget package does not add this reference

Best regards,
Elek

Gáspár Nagy

unread,
Mar 1, 2016, 2:33:29 AM3/1/16
to SpecFlow
Thx!

Just a side note: the documentation wiki is mirrored to the specflow website (where we can better present it and also better measure what is interesting for people), so please bookmark the documentation pages from there, in our case it is: http://www.specflow.org/documentation/Configuration/

Br,
Gaspar

--

Gaspar Nagy Spec Solutions

coach, trainer and bdd addict
email twitter linkedin blog

Reply all
Reply to author
Forward
0 new messages