Hello,
I've been troubleshooting this error for a couple of days and I can seem to find out what is causing TestFixtureSetUp failed in my SpecFlow code.
My Specflow version is 2.1.0 and my Nunit version is 2.6.3.
I troubleshooted the obvious causes of this exception including making sure my setup fixtures are static for setup and tear down.
When i run my specflow tests in Visual studio they run fine however when I use NUnit's parallel execution i get the exception.
I think its failing on the auto generated specflow feature cs fixtures but i do not know of a way to control the the auto generated fixtures.
Anyone run into this issue and have insights or suggestions on how to troubleshoot are welcome. Thanks.
An example fixture:
[NUnit.Framework.TestFixtureSetUpAttribute()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "ApartmentComparableBuildingHistoryExport", null, ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[NUnit.Framework.TestFixtureTearDownAttribute()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}