Visual Studio开发人员预览单元测试框架反馈 [英] Visual Studio Developer Preview Unit testing framework feedback

查看:67
本文介绍了Visual Studio开发人员预览单元测试框架反馈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的不确定这是否是最适合本人的地方,但是我想对在Visual Studio vNext的开发人员预览中发布的本机C ++单元测试框架发表自己的看法.

I am really not sure if this is the best place for this diatribe, but I wanted to give my thoughts on the native C++ unit testing framework unveiled with the developer preview of visual studio vNext.

我真的认为Visual Studio的C ++会变得更好.测试框架集成将允许其他提供者"接受这一事实.运行单元测试是另一个飞跃.  

I really think it will C++ with visual studio just got much better.  The fact thatthe test framework integration will allows other "providers" to run unit tests is another leap forward.  

但是,我对本机测试的实际语法有些担心.  尤其是我认为Assert类的AreEqual()及其关联成员有点过于简单.

However I have some concerns regarding the actual syntax of the native tests.  In particular I thought the Assert class's AreEqual() and associated members were a little bit too simplistic.

其他更成熟的框架(增强,谷歌测试等)提供了丰富的Assert函数/宏.

Other more mature frameworks (boost, google test, etc) supply a rich set of Assert functions/macros.

我真的很希望看到MS为Assert类的实现添加更多的思想,添加LessThan,GreaterThan(或等效的);不区分大小写的字符串比较;浮点比较等.

I would really like to see MS add some more thought to the Assert class implementation, adding LessThan, GreaterThan (or equivalent); case insensitive string comparison; floating point comparison etc.

还应注意的是,其他框架(例如:google test)允许两种样式的测试失败:"EXPECT"和"ASSERT".  区别在于发生故障的时间可以控制是否也可以评估同一测试中的后续语句或应该 如果测试应该早点回来.

Also worth noting is that other framework eg: google test allow two styles of test failure: "EXPECT" and "ASSERT".  The difference being when a failure occurs one can control if the subsequent statements in the same test can also be evaluated or should if test should return early.

我的清单并没有详尽无遗,但它们可以帮助真正的测试驱动开发人员编写更具表现力的测试.

My list is not exhaustive by any stretch, but they would help make real test driven developers write much more expressive tests.

我在一家大型软件公司工作,几乎完全限于Microsoft技术.  管理层已经开始抱怨要接受ms本机单元测试框架而不是整合第三方的决定. 请在最终版本发布前向框架中添加更多功能.

I work in a large software company almost completely restricted to microsoft technologies.  Already there has been management murmurings about a decision to embrace the ms native unit test framework rather than integrate a third party. So please, please add more features to the framework BEFORE the final release.

推荐答案

提供投诉/建议和/或报告的最佳场所Visual Studio上的错误是Microsoft Connect网站.在那里,开发团队将听到"消息.你:

The best place to provide complaints/suggestions and/or report bugs on Visual Studio is the Microsoft Connect site. There, the dev teams will "hear" you:

https://connect.microsoft.com/VisualStudio/Feedback

您必须使用Windows Live ID登录才能发布.

You'll have to sign in with your Windows Live ID to post.


这篇关于Visual Studio开发人员预览单元测试框架反馈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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