TFS 2010 Team Build 测试运行因有关测试影响诊断适配器的错误而失败(两个或多个收集器设置为从 IIS 收集信息)
我们正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您还配置了测试设置来收集 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 theAdvanced
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
andTest Impact
data and diagnostic adapters. This, however, means that you can't use the Code Coverage adapter.References: