如何制作使用自定义TestFixture和测试属性的SpecFlow插件?
我正在与一个团队合作,该团队开发了自己的定制测试框架,类似于NUnit,但具有各种附加功能。我正试图把它纳入我们的测试中。要使用定制的TestFixture和测试属性生成代码隐藏功能文件,我需要创建一个插件 我已经创建了这个插件,但我还没来得及让SpecFlow真正看到它。我使用插件在我的App.config中尝试了不同的如何制作使用自定义TestFixture和测试属性的SpecFlow插件?,specflow,Specflow,我正在与一个团队合作,该团队开发了自己的定制测试框架,类似于NUnit,但具有各种附加功能。我正试图把它纳入我们的测试中。要使用定制的TestFixture和测试属性生成代码隐藏功能文件,我需要创建一个插件 我已经创建了这个插件,但我还没来得及让SpecFlow真正看到它。我使用插件在我的App.config中尝试了不同的路径设置排列,甚至是完全指定的路径: <?xml version="1.0" encoding="utf-8"?> <configuration> &
路径设置排列,甚至是完全指定的路径:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json"
publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<specFlow>
<plugins>
<add name="SpecFlowAdapters"
path="C:\Development\[OurProductName]\Plugins\SpecFlowAdapters.SpecFlowPlugin.dll"
type="Generator" />
</plugins>
</specFlow>
</configuration>
是否有人能够成功地创建自定义SpecFlow生成器,并向我指出示例工作代码?插件配置中的路径应该是插件dll所在文件夹的路径,而不是程序集的完整路径
请参阅末尾的“配置详细信息”下的
#error Generation error: Unable to find plugin in the plugin search path:
SpecFlowAdapters. Please check http://go.specflow.org/doc-plugins for details.