简体   繁体   English

在Visual Studio 2012中按类名称对单元测试进行分组(更新1)

[英]Grouping unit tests by class name in Visual Studio 2012 (Update 1)

Is it possible to use the new features of Visual Studio 2012 Update 1 to group unit tests by class name? 是否可以使用Visual Studio 2012 Update 1的新功能按类名称对单元测试进行分组?

I know this wasn't possible in the original release, but, it looks like some enhancements were made to the Test Explorer in Update 1. I see there is now an option to group by project. 我知道这在原始版本中是不可能的,但是,似乎更新1中对测试资源管理器进行了一些增强。我看到现在有一​​个按项目分组的选项。 I also see that I can add custom traits to accomplish a similar grouping. 我还看到可以添加自定义特征来完成类似的分组。

However, I was hoping there was an easy way to group by class name (without adding trait attributes to all of our tests). 但是,我希望有一个简单的方法可以按类名进行分组(不向所有测试中添加特征属性)。 Any ideas ? 有任何想法吗 ?

不幸的是,按班级分组没有进行更新1。请继续关注更新2的CTP。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM