且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何让 Team Build 显示 xUnit.net 测试套件的测试结果和覆盖率?

更新时间:2023-02-11 10:39:22

TFS/TeamBuild 肯定需要特定格式的测试结果,它们也需要专门发布到 TFS.

TFS/TeamBuild definitely requires the test results in a particular format, they also need to be specifically published to TFS as well.

我目前正在为 Gallio 测试运行器寻找这个问题,并且可以提供两个可能的选择:

I'm currently looking at this problem for the Gallio test runner, and can offer two potential options:

  1. 尝试将 xUnit 测试包装在通用测试"项目类型中VSTS 提供的 - 这是 MSTest 执行 xUnit 测试的地方跑步者.
  2. 提出一个 XSLT 转换(或类似的),可以映射xUnit 结果到 MSTest 模式(请参阅http://www.codeplex.com/nunit4teambuild 一个例子NUnit 测试的方法).
  1. Try wrapping the xUnit tests inside the 'Generic Test' project type that VSTS offers - this is where MSTest executes the xUnit test runner.
  2. Come up with an XSLT transform (or similar) that can map the xUnit results to the MSTest schema (see http://www.codeplex.com/nunit4teambuild for an example of this approach for NUnit tests).