TFS 2010 Team Build 测试运行因有关测试影响诊断适配器的错误而失败(两个或多个收集器设置为从 IIS 收集信息)

发布于 2025-01-06 19:45:19 字数 613 浏览 1 评论 0原文

我们正在使用 TFS 进行团队构建,并且有一个场景,我们的应用程序构建成功,并且所有单元/集成测试都成功执行,但测试运行失败,并出现以下错误:

Error   2/16/2012 4:28:14 PM    Unable to create collection settings, diagnostics and data collection may not take place. This can be caused by having more than one instance of Microsoft Test Manager being run at the same time, or by having two or more collectors set to collect information from IIS.    Test Impact 

暂时解决此问题的方法是再次手动对构建进行排队,下一个构建成功完成。

对于此版本,在选定的测试设置文件中启用了以下数据和诊断适配器:

  • 代码覆盖率
  • 系统信息
  • 测试影响

根据错误消息,听起来两个选定的诊断适配器彼此冲突。不能同时启用代码覆盖率和测试影响适配器吗?

We are using TFS for team builds and have a scenario where our application builds successfully, and all of the unit/integration tests are executed successfully, but the test run fails with the error below:

Error   2/16/2012 4:28:14 PM    Unable to create collection settings, diagnostics and data collection may not take place. This can be caused by having more than one instance of Microsoft Test Manager being run at the same time, or by having two or more collectors set to collect information from IIS.    Test Impact 

The work around for this issue for the time being is to manually queue the build again, and the next build completes successfully.

For this build, the following data and diagnostic adapters are enabled in the selected test settings file:

  • Code Coverage
  • System Information
  • Test Impact

Based on the error message, it sounds like two of the selected diagnostic adapters are conflicting with each other. Can you not have Code Coverage and Test Impact adapters enabled at the same time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一梦浮鱼 2025-01-13 19:45:19

如果您还配置了测试设置来收集 IntelliTrace 信息,则收集代码覆盖率数据不起作用。 (您似乎没有)

您的应用程序是在 IIS 上运行的 ASP.NET 应用程序吗?然后您需要选择从 Internet Information Services 上运行的 ASP.NET 应用程序收集数据< /code> 来自高级 选项卡。

您的应用程序是在远程客户端计算机上的 IIS 上运行的 ASP.NET 应用程序吗?您还必须使用 IntelliTrace 的 ASP.NET 客户端代理测试影响 数据和诊断适配器。但是,这意味着您无法使用代码覆盖率适配器。

参考资料:

Collecting code coverage data does not work if you also have the test setting configured to collect IntelliTrace information. (Which you don't appear to have)

Is your application an ASP.NET application running on IIS? Then you need to select Collect data from ASP.NET applications running on Internet Information Services from the Advanced tab.

Is your application an ASP.NET application running on IIS on remote client machines? You must also use the ASP.NET Client Proxy for IntelliTrace and Test Impact data and diagnostic adapters. This, however, means that you can't use the Code Coverage adapter.

References:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文