Hooking up MSTest to Specflow

Tags: Specflow, Testing, BDD

Open up the App.config file in your Test project and add

<unitTestProvider name="MsTest" />

to the specFlow Element. The resulting XML should look like this...

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
  </configSections>

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

Next step is to regenerate your specflow features to use the new MSTest stuff... and Job Done!

1 Comment

  • Prady said

    Nick,

    That was one heck of setting which is missing from every skipflow documentations!
    Thanks.

Leave a Comment

Yay! You've decided to leave a comment. That's fantastic! Please keep in mind that comments are moderated and rel="nofollow" is in use. So, please do not use a spammy keyword or a domain as your name, or it will be deleted. Let's have a personal and meaningful conversation instead. Thanks for dropping by!