我正在尝试将我的nunit测试添加到我的cruisecontrol ccnet.config,当在仪表板上强制构建时,它会在我的机器上打开Nunit并在命令行中显示错误,我在哪里出错?
<nunit>
<path>C:\Program Files (x86)\NUnit 2.6.2\bin\nunit.exe</path>
<assemblies>
<assembly>C:\Users\computeruser\Documents\Visual Studio 2010\Projects\WebCrawlerMVC\WebCrawlerMVC.Tests\bin\Debug\nunit.framework.dll</assembly>
<assembly>>C:\Users\computeruser\Documents\Visual Studio 2010\Projects\WebCrawlerMVC\WebCrawlerMVC.Tests\bin\Debug\WebCrawlerMVC.Tests.dll</assembly>
</assemblies>
<excludedCategories>
<excludedCategory>LongRunning</excludedCategory>
</excludedCategories>
</nunit>
是否有比上面更容易或更好的方法?
答案 0 :(得分:3)
尝试使用 nunit-console.exe 应用程序,如下所示:
<nunit>
<path>"C:\Program Files\NUnit 2.6.2\bin\nunit-console.exe"</path>
...
</nunit>