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:
- 尝试将 xUnit 测试包装在通用测试"项目类型中VSTS 提供的 - 这是 MSTest 执行 xUnit 测试的地方跑步者.
- 提出一个 XSLT 转换(或类似的),可以映射xUnit 结果到 MSTest 模式(请参阅http://www.codeplex.com/nunit4teambuild 一个例子NUnit 测试的方法).
- Try wrapping the xUnit tests inside the 'Generic Test' project type
that VSTS offers - this is where MSTest executes the xUnit test
runner.
- 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).