我已經配置Specflow在我的「規範」類庫的app.config像這樣指定它爲目標的MSTEST框架(而不是NUnit的):如何讓VS2010識別由SpecFlow生成的我的mstests?
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<unitTestProvider name="MsTest.2010" />
</specFlow>
所以,一旦它在的地方,我可以看到我的測試夾具被正確地Specflow自定義工具產生的,具有正確TestClassAttribute()和方法等:
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.3.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()]
...
的規範類構建,但現在我不能運行使用Test測試 - >運行 - - >在我的vista 64盒子上的Visual Studio 2010內的解決方案中的所有測試。爲什麼VS不認可這些作爲有效的測試運行?