Specflow generates step definitions in the context menu

I followed the instructions for getting started and there is no "generate step definitions" in the context menu.

I tried adding additional batch processing packages from nuget to mstest and still nothing.

+8
source share
5 answers

I have the same problem. I searched for this parameter in the context menu of the object file, but this parameter exists in the context menu of the contents of the object file. Therefore, try opening the object file (* .feature) in a Visual Studio text editor and right-clicking in a text editor . Example file:

Scenario: Add two numbers
    Given I have entered 50 into the calculator
    And I have entered 70 into the calculator
    When I press add
    Then the result should be 120 on the screen
+18
source

, , .feature, , , , TechTalk.SpecFlow.dll .

(NuGet ), "" TechTalk.SpecFlow.dll, , , "[project]/packages/SpecFlow. XXX/lib/netXX/'(X - ).

, :

enter image description here

, :

enter image description here

SpecFlow.2.1.0 VS2010, .Net, SpecFlow.1.9.0.

+3

specflow , ,

+2

SpecRun.SpecFlow Nuget Packages, " " .

.

+1

, SpecFlow .

SpecRun.SpecFlow , .

SpecFlow.xUnit SpecFlow.xUnit , SpecFlow.xUnit . , Generate step definitions.

" " . .

0
source

All Articles