Unit Test Providers

SpecFlow supports several unit test framework to execute the acceptance tests. You can use one of the built-in unit test providers or create a custom provider. The unit test provider to be used can be configured through the <unitTestProvider> configuration element.

The following table contains the built-in unit test providers.

Name Supports Description
row tests categories inconclusive

SpecFlow+ Runner (fka SpecRun)

+

+

+

SpecFlow+ Runner is a test execution framework specialized for SpecFlow. Install it with the SpecRun.SpecFlow NuGet package. See SpecRun Integration for details.

NUnit

+

+

+

See http://www.nunit.org. Specialized NuGet packages available for easy setup: SpecFlow.NUnit, SpecFlow.NUnit.Runners. Supports parallel execution with NUnit v3.

MsTest.2008

-

-

+

MsTest provider for .NET 3.5

MsTest MsTest.2010

-

+

+

MsTest provider for .NET 4.0. Supports test categories. Specialized NuGet package available for easy setup: SpecFlow.MsTest.

MsTest.Silverlight MsTest.Silverlight3 MsTest.Silverlight4

-

+

+

Silverlight Unit Test Framework http://code.msdn.microsoft.com/silverlightut. See Silverlight Support.

MsTest.WindowsPhone7

-

+

+

See Windows Phone 7 Support.

xUnit

+

-

-

See http://www.xunit.net. Specialized NuGet package available for easy setup: SpecFlow.xUnit. Supports parallel execution with xUnit v2.

mbUnit

+

+

+

MbUnit provider. See http://www.mbunit.com.

mbUnit.3

+

+

+

MbUnit Version 3 provider. See http://www.mbunit.com.