【发布时间】:2018-09-24 01:03:48
【问题描述】:
正如标题所说,我在外部程序集中有步骤绑定。我使用以下方法将它们带入项目:
<specFlow>
<unitTestProvider name="xUnit" />
<plugins>
<add name="SpecFlow.xUnitAdapter" type="Runtime" />
</plugins>
<stepAssemblies>
<stepAssembly assembly="MyOtherProject.StepBindings" />
</stepAssemblies>
</specFlow>
虽然.feature 文件运行并且测试顺利通过,但所有步骤在 Visual Studio 编辑器中都显示为未绑定(紫色),点击F12 会提供一个包含建议代码的对话框。
我需要做什么才能获得绑定步骤亮点?
这篇文章没有帮助:Specflow Binding from External Assembly always purple
我已清除%TEMP%\VisualStudioTestExplorerExtensions 无济于事。
【问题讨论】:
-
插件是开源的。我打算看一下 repo,但我没有太多编写 VS 插件的经验。希望这篇文章可能会将网络投向一个/正在/将要的人的方向。
-
@tarun-lalwani 你想发表你的评论作为答案,我会接受吗?
标签: visual-studio-2015 specflow