【问题标题】:Run xUnit test with Team Build 2010使用 Team Build 2010 运行 xUnit 测试
【发布时间】:2012-09-23 19:12:00
【问题描述】:

我需要配置 Team Build Server (TFS 2010) 以运行 xUnit 测试 以及 MSTest。我发现的一些信息是下一个网址:

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 在公司网络中,我无法以我的方式配置它。

那么,我的问题:是否有能力配置团队 Build 2010 以连续运行 xUnit 测试?如何仅从客户端对其进行配置以运行 xUnit 测试?

我将不胜感激。

【问题讨论】:

    标签: tfs continuous-integration tfsbuild xunit.net


    【解决方案1】:

    那些文章谈论的是 TFS 2008 而不是 2010。在 TFS 2010 中,构建技术发生了显着变化。

    您要做的是自定义 TFS 构建工作流文件 (DefaultTemplate.xaml),该文件将存在于源代码管理的 BuildProcessTemplates 目录中。

    您需要添加一个 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

    【讨论】:

      猜你喜欢
      • 2011-07-08
      • 2010-09-14
      • 2013-09-01
      • 2015-11-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多