Unable to run a SpecFlow scenario from Visual Studio 2012 Ultimate Edition

Nagendra picture Nagendra · May 24, 2013 · Viewed 16.1k times · Source

I have installed Visual Studio 2012 Ultimate Edition and configured SpecFlow. I have used the following configuration to run the tests in config.xml file:

<specFlow>
<unitTestProvider name="MsTest" /> 
</specFlow>

I was able to create the testes and compile properly. But when I tried to run the scenarios from the context menu with the option "Run SpecFlow Scenarios" or "Debug SpecFlow scenarios", I am not able to see any action. It just says "Build succeeded" and nothing else happens later.

Can someone kindly explain if there is any other way of executing the scenarios?

Thanks in advance.

Answer

Tim picture Tim · Jul 12, 2013

I already had all this configuration set, but I was still not able to get the scenarios to run from the context menu.

Until I reviewed the SpecFlow options (Tools > Options > SpecFlow) and set "VisualStudio2012" as Test Runner Tool (under Test Execution).

For some reason it was set on "VisualStudio2010MsTest" and then the scenarios didn't run from the context menu.