4
votes

As the title says, I have step bindings in an external assembly. I have brought them into the project using:

  <specFlow>
    <unitTestProvider name="xUnit" />
    <plugins>
      <add name="SpecFlow.xUnitAdapter" type="Runtime" />
    </plugins>
    <stepAssemblies>
      <stepAssembly assembly="MyOtherProject.StepBindings" />
    </stepAssemblies>
  </specFlow>

While the .feature file runs and the tests pass just fine, the steps all appear unbound (purple) in the Visual Studio editor and hitting F12 provides a dialog with suggested code.

What do I need to do to get bound step highlights?

This post does not help: Specflow Binding from External Assembly always purple

I have cleared the %TEMP%\VisualStudioTestExplorerExtensions to no avail.

1
The plugin is open source. I was planning to take a look at the repo, but I don't have much experience writing VS plugins. Was hoping this post might throw the net in the direction of someone who does/is/would. - Matt W
@tarun-lalwani Would you like to post your comment as an answer and I'll accept it? - Matt W

1 Answers