Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I know you asked about VS2010, but given the age of your question, I thought I'd try it in VS2012. I was able to get SpecFlow to work with MSTest without altering the Tools\Options\SpecFlow\Test Runner Tool setting (i.e. leaving it at "Auto"):</p> <ol> <li>Install SpecFlow Extension to Visual Studio 2012 <ul> <li>Select Tools\Extension and Updates</li> <li>Search for "Specflow"</li> <li>Install the extension</li> <li>Re-start Visual Studio 2012 (SpecFlow menu items might not show up until you do this) </li> </ul></li> <li>Create new class library project (e.g. MyProject.spec)</li> <li>Add Specflow package via nuget<br> <ul> <li>Right-click the project references node</li> <li>Select Manage NuGet Packages</li> <li>Search for "Specflow"</li> <li>Select "Install"</li> </ul></li> <li>Configure SpecFlow <ul> <li>Open the app.config file</li> <li>Add the following entry:</li> <li>Right-click the project references node</li> <li>Add the following entry inside the &lt;specFlow&gt; node: &lt;unitTestProvider name="MsTest" /&gt;</li> </ul></li> <li>Create a new feature <ul> <li>Right-click the project node</li> <li>Select Add\New Item\SpecFlow Feature File </li> </ul></li> <li>Add the unit test assembly to the project <ul> <li>Right-click the project references node</li> <li>Select "Add Reference"</li> <li>Search Assemblies for "Microsoft.VisualStudio.QualityTools.UnitTestFramework"</li> <li>Add the assembly</li> </ul></li> <li>Generate Step Definitions <ul> <li>Double-click the features file to open it</li> <li>Right click the white space at bottom of the features file</li> <li>Select "Generate Step Definitions"</li> </ul></li> <li>Run the tests <ul> <li>Select Test Explorer\Run All</li> </ul></li> </ol> <p>Tests should run normally at this point</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload