测试影响无法在CTP中运行! [英] Test Impact not working in CTP !

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

问题描述

我在2010年的新测试影响视图中看到了几个视频;但我无法让它在CTP中运行。

我尝试使用DinnerNow.net解决方案,遵循演练说明 - 但它不起作用!这里的任何人都通过了这个?

我接着尝试从头开始,如下所示 - 没有工作!

0)创建了一个新的Team项目并添加了一个新的解决方案(带有一个控制台应用程序项目)。在同一团队项目的新测试项目中添加了单元测试方法。
1)创建了新的构建定义并将"Pubish test impact results"活动添加到构建工作流程(作为第一项)
2)检查所有文件到源代码控件

3)对构建进行排队并使其成功完成

4)回到我的项目,并修改了正在测试的方法(我在方法中添加了一个新的初始化语句,并且评论另一行)
5)保存项目 - 测试影响视图未更新!
排队另一个构建,并成功完成 - 静态测试影响未更新!

我错过了什么;或者这是CTP的问题?

我是否需要将测试方法添加到测试列表中 - 就像在DinnerNow解决方案中一样?关于这个的问题是我没有在签入策略向导中获得测试列表,尽管我选择了正确的.vsmdi文件!

任何指点赞赏..

干杯,
- Krishns



I saw couple of videos on the new Test Impact View in 2010; but I am not able to get it working in the CTP. 

I tried this with the DinnerNow.net solution , following the walkthrough instructions as it is - but it did not work! Anyone out here got through on this ??

I then tried doing this from scratch as given below - didn't work still !

0) created a new Team project and added a new solution (with a console app project) to it. Added a unit test method in a new test project in the same team project.
1) created a new build definition and added 'Pubish test impact results' activity to the build workflow (as the first item)
2) checked in all files to the source control
3) queued the build and got it completed successfully
4) Got back to my project, and modified the method being tested (I added a new initialization statement to the method, and commented another line)
5) Saved the project - Test Impact view is not updated !
    Queued another build, and completed it successfully - Still Test Impact is not updated !

Am I missing out something ; or is this an issue with CTP?

Do I need to add the test method to a Test List - as done in DinnerNow solution? Issue on this is that I do not get the Test list in the checkin policy wizard, though I selected the correct .vsmdi file !

Any pointers appreciated ..

Cheers,
- Krishns




推荐答案

您认为在测试中需要测试方法是正确的测试列表作为构建的一部分运行。此外,还必须启用代码覆盖,并选择您感兴趣的二进制代码以进行代码覆盖。
您可以检查构建报告,以查看您感兴趣的测试方法是否已成功完成。

在CTP版本中获取测试影响信息所需的一些事情(如您所见)。我们认识到这一点,并正在努力使整个体验变得更简单,更简化。一旦您进行了测试(启用了代码覆盖率)并且在构建中传递,您是否仍然遇到问题。

Tim
You are correct in your thought that you need to have your test method in a test list for the test to run as part of the build. Also code coverage must be enabled and the binaries you're interested in selected for code coverage.
You can check the build report to see if the test method you're interested in has completed succesfully.

There are a handful of things (as you're seen) that are required to get Test Impact information in the CTP build. We recognize this and are working on making this entire experince simpler and more streamlined. Let us know if you're still running into issues with this once you have the test (with code coverage enabled) running and passing in the builds.

Tim


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

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