如何注册为Visual Studio 2013专业版扩展单元测试属性 [英] How to register extended unit test attribute for Visual Studio 2013 Professional

查看:147
本文介绍了如何注册为Visual Studio 2013专业版扩展单元测试属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图延长MS单元测试类在Visual Studio 2013,按照下面的指引

I'm trying to extend MS unit test class in Visual Studio 2013, in accordance with the guideline below.

扩展Visual Studio单元测试类型,第1部分

不过,这并不正常工作。

But it does not works fine.

通过我的.pdb和.dll文件复制到PrivateAssemblies文件夹下的安装VS目录,VS步入扩展TestClassAttribute找到ExtentionID,但测试方法与errormessage的失败告诉 初始化失败单元测试的扩展,因为它未注册

With my .pdb and .dll files copying to PrivateAssemblies folder under the VS installed directory, VS steps into extended TestClassAttribute to find ExtentionID, but the test method failed with the errormessage telling failed to initialize the unit test extension, as it is not registered.

我真的仔细检查注册表等级和项匹配的方针,没有发现错误。(虽然VS版本的上层节点为10.0至12.0的不同)

I really carefully inspected the registry hierarchy and entry to match the guideline and found no error.(Although the upper node of VS version is different from 10.0 to 12.0)

我不知道是否 是否有可能在我的VS 2013版的专业的扩展单元类

I wonder if is it possible to extend unit class in my VS 2013 version "Professional".

此外,据我考察,这个问题是没那么受欢迎,因为VS 2013被释放。

Also as far as I inspected, this issue is not so popular since VS 2013 was released.

正在扩展的单元测试类仍然是有效的VS 2013?

Is extending unit test class is still effective in VS 2013?

我会感激任何暗示,建议或解决方案。

I'll appreciate any hint, advice or solution.

感谢。

推荐答案

我已经达到了解决方案。

I have reached to the solution.

在我的自我回复细节,我在MSDN后论坛。
请参考的难道是可能在Visual Studio二千零十三分之二千零十延长UnitTestClass专业版?

Details in my self reply in my post in MSDN forum. Please refer Could it be possible to extend UnitTestClass in Visual Studio 2010/2013 Professional Edition?

简单地说,它只是一个注册表项AttributeProvider的问题。

Put simply, it's just a problem of Registry entry "AttributeProvider".

因此,如果测试类属性延伸的装配名称是MyExtension.Simple.LoggingTestClass和扩展测试类属性的全名是MyExtension.Simple.LoggingTestClass.LoggingTestClassAttribute,入账价值应该如下。
AttributeProvider=MyExtension.Simple.LoggingTestClass.LoggingTestClassAttribute,MyExtension.Simple.LoggingTestClass

So if the assembly name of the test class attribute extention is "MyExtension.Simple.LoggingTestClass" and the full name of extended test class attribute is "MyExtension.Simple.LoggingTestClass.LoggingTestClassAttribute", the entry value should be as follows. "AttributeProvider"="MyExtension.Simple.LoggingTestClass.LoggingTestClassAttribute, MyExtension.Simple.LoggingTestClass"

在我的环境中,使用此设置时,Visual Studio 2013专业版运行由我的扩展属性合格测试。

In my environment, with this setting, Visual Studio 2013 Professional runs the test which is qualified by my extended attribute.

这就是全部。感谢您的关注。

That's all. thanks for you attention.

* PS。我已经改正包含在我的源文件.reg文件并交换它。所以,如果你已经下载了,请重新下载和交换。

*ps. I have corrected the .reg file included in my source files and exchanged it. So if you have already downloaded, please re-download and exchange them.

这篇关于如何注册为Visual Studio 2013专业版扩展单元测试属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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