Andreas' answer is correct. But I've since discovered why nuget failed to install SpecRun.SpecFlow correctly. I believe it had to do with artifacts left over from a previous installation, which was later removed. It installed correctly after I:
- Removed the "SpecRun.Runner.1.2.0" and "SpecRun.SpecFlow.1.2.0" directories from my solution's \packages\ directory
- Removed the "SpecRun.Runner.1.2.0" directory from C:\Users\[me]\AppData\Local\Temp\VisualStudioTestExplorerExtensions\
- Removed the "obj\debug" and "bin\debug" directories from the project in question.
- (this was definitely part of the problem:) Removed these files from my project: "Default.srprofile", "runtests.cmd", "SpecRunTestProfile.xsd". These were removed from my solution with the previous uninstall, but were still there in the file system.
- For good measure, checked the entire project from source control and ran via the Nuget command line (
Install-Package SpecRun.SpecFlow
), because I was desperate and trying everything at this point.
After doing all that, SpecRun.Runner installed correctly. Not sure all of that was needed, but at least several of them were, each of them individually didn't do the trick. Oh, and another gotcha:
- Even when mostly successful (got my shiny new "Default.srprofile"!), I still had to fix something in the app.config: the install correctly added
<unitTestProvider name="SpecRun" />
element, but mistakenly left in the old <unitTestProvider name="MsTest" />
element. Had to take that out for all to be joyful.
Of course, now I have this issue, but that's unrelated.