Skip to content

Windows Phone 7 Support

gasparnagy edited this page Mar 29, 2011 · 14 revisions

You can use SpecFlow for developing Windows Phone 7 applications. Just do these simple steps.

(Windows Phone 7 support for SpecFlow was done by Max Paulousky http://www.maxpaulousky.com)

Install prerequisites

Create unit test project

TBD

SpecFlow runtime for WP7

  • Add a reference to TechTalk.Specflow.WindowsPhone7.dll to the test project.

Configure SpecFlow

  • Add an app.config to the project (even if it’s not supported by WP7), with the following content:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <configSections>
        <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
      </configSections>

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

Start writing specs

Add feature files and step definitions to the test project. You can use the templates in “Add → New Item…” for that.

Run your tests

TBD

Clone this wiki locally