【问题标题】:TFS 2013 build with xUnit and MsTest both使用 xUnit 和 MsTest 构建的 TFS 2013
【发布时间】:2016-02-11 16:04:26
【问题描述】:

使用 (tfvcTemplate.12.xaml) 的 TFS 2013 是否支持多个测试运行器?我们的解决方案中有两个单元测试项目(MsTests 和 XUnit)。我希望构建运行 xUnit 测试以及 MsTests。

项目:

  • MySolution.UnitTests (mstests)
  • MySolution.UnitTests.xUnit(xunit 测试)

我在构建服务器上安装了 VS2013。

看起来 MsTests 运行良好,但不是 xUnit。结果仅显示 MsTests 而没有 xUnit 测试。

如何指定 xUnit 也被执行?

【问题讨论】:

    标签: build-process mstest xunit


    【解决方案1】:

    您只需将 xUnit 运行程序 Nuget 包添加到您的 xUnit 项目。我认为这是正确的包装:

    https://www.nuget.org/packages/xunit.runner.visualstudio/2.1.0

    【讨论】:

      猜你喜欢
      • 2014-11-12
      • 2012-05-18
      • 2016-10-30
      • 1970-01-01
      • 1970-01-01
      • 2015-01-06
      • 2013-12-28
      • 2015-12-29
      • 1970-01-01
      相关资源
      最近更新 更多