如何让 Team Build 显示 xUnit.net 测试套件的测试结果和覆盖范围?
有没有人成功地让 Team Build 在构建报告中显示 xUnit.net 测试结果和代码覆盖率? MSBuild 运行程序运行测试正常,结果位于日志文件中,但构建报告的测试结果和代码覆盖结果区域分别显示“无测试结果”和“无覆盖结果”。 Team Build 是否正在为 xUnit.net 运行程序导出的测试结果寻找特定位置/格式?
Has anybody had any success getting Team Build to show xUnit.net test results and code coverage in the build report? The MSBuild runner is running the tests just fine and the results are in the log file, but the test results and code coverage results areas of the build report say "No test result" and "No coverage result" respectively. Is Team Build looking for a certain location / format for the test results to be exported by the xUnit.net runner?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
TFS/TeamBuild肯定需要特定格式的测试结果,它们也需要专门发布到TFS。
我目前正在为 Gallio 测试运行程序研究这个问题,并且可以提供两个潜在的选项:
VSTS 提供的 - 这是 MSTest 执行 xUnit 测试的地方
跑步者。
xUnit 结果到 MSTest 模式(参见
http://www.codeplex.com/nunit4teambuild 作为示例
NUnit 测试的方法)。
TFS/TeamBuild definitely requires the test results in a particular format, they also need to be specifically published to TFS as well.
I'm currently looking at this problem for the Gallio test runner, and can offer two potential options:
that VSTS offers - this is where MSTest executes the xUnit test
runner.
xUnit results to the MSTest schema (see
http://www.codeplex.com/nunit4teambuild for an example of this
approach for NUnit tests).
另请参阅 http:// /jonnekats.wordpress.com/2009/05/07/integrate-xunit-tests-into-your-daily-team-build/
See also http://jonnekats.wordpress.com/2009/05/07/integrate-xunit-tests-into-your-daily-team-build/