且构网

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

TFS 团队构建日志单元测试结果

更新时间:2023-02-20 20:55:45

如果您使用默认模板并使用 Microsoft 提供的单元测试框架运行测试,您应该能够在构建详细信息的查看摘要页面.当您单击此链接时,将从数据库下载测试结果并将其放在一个 trx 文件中,该文件将显示在 Visual Studio 的测试窗口中.

If you use the default template and run the test using the unit test framework provided by Microsoft, you should be able to see a link to the published test results on the View Summary page of the build details. When you click at this link, the test results will be downloaded from the database and put together in an trx file that will be displayed in your Test Window in Visual Studio.

更新:在查看日志后发现问题.构建模板被定制为使用另一个工具来构建而不是 MSBuild,因此没有创建每个配置(平台/风格)的摘要节点.这就是构建详细信息视图缺少摘要(包括测试结果)的原因.

UPDATE: The problem was figured out after looking at the logs. The build template was customized to use another tool to build instead of MSBuild, and the summary nodes for each configuration (platform/flavor) were not created as a result. That's why the build details view was missing the summary, including the test results.