tfs 2012 中的测试影响分析 [英] Test impact analysis in tfs 2012

查看:23
本文介绍了tfs 2012 中的测试影响分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个带有构建控制器和构建代理的 tfs 2012 服务器.我有一个简单的 Visual Studio 2012 解决方案,其中包含一个 Windows 控制台应用程序项目和一个客户端计算机上的测试项目.在构建定义中启用了测试影响分析.

I have setup a tfs 2012 server with the build controller and the build agent. I have a simple visual studio 2012 solution with a windows console application project and a test project on a client machine. Test impact analysis is enabled in the build definition.

简而言之,在 tfs 服务器上执行的每个构建中应该出现的受影响测试列表永远不会被填充.我尝试将测试运行程序从 vs 运行程序更改为 mstest 无济于事.

Simply put, the impacted tests list that should appear on each build performed on the tfs server is never populated. I have tried to change the test runner from vs runner to mstest to no avail.

请指教.谢谢.

我在服务器上安装了 VS 2012.这启用了代码覆盖率,但仍然没有影响分析.

I installed VS 2012 on the server. This enabled code coverage, but still no impact analysis.

推荐答案

幸运的是我解决了问题".

Fortunately I fixed the 'problem'.

要使 TIA 工作,您需要在测试管理器中成功完成一个测试用例,并通过所有测试步骤.只有这样才会生成分析文件.另外,我在测试控制器的视频录制模块上遇到了问题,这显然有时也会阻止生成文件,尽管这可能只是巧合.

For TIA to work, you need to successfully complete a test case in test manager, passing all test steps. Only then does the analysis file get generated. Also, I had problems with the video recording module of the test controller, which apparently also prevents the file from being generated sometimes, though this could just be a coincidence.

成功生成文件后,后续构建现在将有一个基线进行比较.

After successfully generating the file, subsequent builds will now have a baseline to compare against.

玩得开心.

这篇关于tfs 2012 中的测试影响分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆