title: TeamCity SpecFlow NUnit Watin and ApartmentState STA
body: <p>Im trying to get our specflow watin tests to run on our new teamcity server. The problem is that I cant get the built in nunit runner to run tests in appartmentstate STA.</p>
  
  <p>We used this configuration earlier, which works with other testrunners:</p>
  
  <pre><code>&lt;NUnit&gt;
      &lt;TestRunner&gt;
          &lt;add key="ApartmentState" value="STA" /&gt;
      &lt;/TestRunner&gt;
  &lt;/NUnit&gt;
  </code></pre>
  
  <p>But the TeamCity NUnit test runner doesnt seem to pick up on this config. We have other config sanity tests in place, so we know the testrunner reads the configuration for our test project atleast.</p>
  
  <p>There's the alternative to use the RequiresSTA attribute like so:</p>
  
  <pre><code>[Test, RequiresSTA]
  public void ShouldRunThreadApartmentStateSTAWith()
  {
    Assert.AreEqual(ApartmentState.STA, Thread.CurrentThread.GetApartmentState());
  }
  </code></pre>
  
  <p>But since the NUnit tests are generated by SpecFlow, I don't have control over how these attributes are set.</p>
  
  <p>How can I get this setup to work?</p>