按照SpecFlow網站,我可以生成通過執行以下語句的TestResult:生成的TestResult與NUnit控制檯失敗
nunit3-console.exe --labels=All --out=TestResult.txt "--result=TestResult.xml;format=nunit2" bin\Debug\BookShop.AcceptanceTests.dll
我已經適應了這個聲明如下:
nunit3-console.exe --labels=All --out=C:\temp\TestResult.txt "--result=C:\temp\TestResult.xml;format=nunit2" C:\Projects\DataService.IntegrationTests\bin\Debug\DataService.IntegrationTests.dll
不幸的是,我得到以下錯誤:
錯誤,故障和警告
1)無效:C:\ Projects \ DataService.IntegrationTests \ bin \ Debug \ DataService.IntegrationTests.dll 在'C:\ Projects \ DataService.IntegrationTests \ bin \ Debug.DataService.IntegrationTests.dll中找不到合適的測試」。 組件中不包含任何測試或未找到正確的測試驅動程序。
的.feature
文件在本次大會提供...
可以在這裏是什麼問題?
我的一個假設是,我們正在使用Specflow.MsTest
...
有沒有辦法通過使用MsTest
生成TestResult.xml
?
在此先感謝
你有什麼在你的app.config配置爲您的unitTestProvider? –
我配置了MSTest – xeraphim
好的,但是爲什麼您通過NUnit執行測試?您必須爲MsTest使用vstest.console.exe。 –