TFS 2013 使用 xUnit 和 MsTest 构建

TFS 2013 build with xUnit and MsTest both

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

项目:

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

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

如何指定 xUnit 也被执行?

您只需将 xUnit runner Nuget 包添加到您的 xUnit 项目中。我认为这是正确的包裹:

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