【问题标题】:SpecFlow step bindings very flaky when using an external assembly使用外部组件时,specflow步骤绑定非常脆弱
【发布时间】: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 无济于事。

【问题讨论】:

标签: visual-studio-2015 specflow


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2014-05-17
  • 1970-01-01
  • 2011-07-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多