总结显示通用测试的内部测试结果
我在使用 TFS 进行通用测试和构建项目时遇到了一些问题。我有一个 Silverlight 用户控件,我正在使用工具包中的 Silverlight 单元测试对其进行测试。我们还有一台构建机器,并使用 StatLight,我设法在项目构建时自动进行运行测试(感谢本文的作者 http://www.nielshebling.de/?p=167)。 问题在于结果,我希望内部测试结果显示在摘要中(请看下面的屏幕截图)。现在显示只运行了一项测试(通用测试)。 http://img705.imageshack.us/i/screenqqs.jpg/
是吗甚至可能吗? 使用 XML 架构定义工具 (Xsd.exe),我从 SummaryResult.xsd 生成了一个类。也许可以重写这个类,以便内部测试的结果显示在摘要中? 将非常感谢您的帮助
我们 请原谅我的英语
I have a little problem with generic test and building project using TFS. I have a Silverlight user control, which I am testing using Silverlight unit tests from toolkit. Also we have a build machine, and using StatLight, I managed to make run test automatically when project is building(thanks to author of this article http://www.nielshebling.de/?p=167).
The problem is in results, I would like that inner test results were shown in summary(look at the screenshot below). Now it's showing that only one test was run(the generic test). http://img705.imageshack.us/i/screenqqs.jpg/
Is it even possible?
Using XML Schema Definition Tool (Xsd.exe) I generated a class from SummaryResult.xsd. Maybe it's possible to rewrite this class so the results of inner test were shown in Summary?
Your help would be greatly appreciated
P.S. excuse me for my english
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看一下这两篇文章:
希望它能帮助您或面临同样挑战的其他人。
Have a look at these two articles:
Hope it will help you or someone else facing the same challenge.
我在编写可以从测试项目 [TestMethod()] 调用的多用途子测试时使用的解决方案之一是在子测试中使用 Console.WriteLine 消息。这些在测试结果窗口中不可见,但您可以通过右键单击各个测试结果在“查看测试结果详细信息”窗格中查看控制台输出(如果有)。
对于您的特定测试场景(Silverlight 或 TFS)没有直接经验,我不确定这是否适用于 SilverLight;但我希望这会有所帮助。
One of the solutions that I've used when writing multi-purpose sub-tests which can be called from a test project [TestMethod()] is to Console.WriteLine messages within the sub-tests. These are not visible in the test results window, but you can see the console output (if any) in the "View Test Result Details" pane by right clicking on the individual test result.
Having no direct experience with your particular test scenario (Silverlight, or TFS) I'm not sure this is appliciple to SilverLight or not; but i hope this helps.