2012-09-23 84 views
2

我需要配置Team Build Server(TFS 2010)以運行xUnit測試以及MSTests。我發現有些信息是下一個網址:使用Team Build 2010運行xUnit測試

http://weblogs.asp.net/mehfuzh/archive/2009/08/25/configuring-team-build-using-xunit.aspx

http://msmvps.com/blogs/mehfuz/archive/2009/09/05/configuring-team-build-using-xunit-from-client-update.aspx

網絡上的每一個崗位是在說,我需要修改/配置團隊構建服務器,或TeamBuildTypes目錄(順便說一句我不要在我的團隊資源管理器中看到它)。但是我的問題是Team buid在企業網絡中,我無法按照自己的方式進行配置。

那麼,我的問題:有沒有任何能力配置團隊建設2010連續運行xUnit測試?我怎樣才能配置它只從客戶端運行xUnit測試?

我會很感激任何幫助。

回答

2

這些文章談論TFS 2008而不是2010年。在TFS 2010中,構建技術發生了顯着變化。

你想要做的是自定義將存在於源代碼管理的BuildProcessTemplates目錄中的TFS構建工作流文件(DefaultTemplate.xaml)。

您需要添加一個InvokeProcess活動,它將執行適當的命令行命令爲您運行xUnit。

這裏有一些鏈接,可以幫助您解決:

http://geekswithblogs.net/jakob/archive/2012/02/01/handling-warnings-and-errors-with-invokeprocess-in-tfs-2010-build.aspx

http://www.ewaldhofman.nl/post/2010/04/20/Customize-Team-Build-2010-e28093-Part-1-Introduction.aspx

相關問題