I have gone through the Getting Started tutorial for SpecFlow. Everything worked fine except that I have the @SpecRun test because I have not entered a demo key.
But
You need a test runner adapter for Visual Studio to get the tests in the test explorer. They are distributed by NuGet packages. Add the package for your test runner to your test project.
If you want to your tests - the unit tests generated by Specflow, just for being precise - displayed in your unit test explorer you must create Unit test project. If you created a class library project then you won't see them.
Here you can find information about how you can convert your class library project to unit test project.
Update your NUnit Test Adapter to NUnit3 Test Adapter. Restart Visual Studio and rebuild the tests should show up.
I was also having same issue in Visual Studio 2019, and I managed to fix by adding following nuget packages:- SpecFlow, SpecFlow.Tools.MsBuild.Generation, SpecRun.SpecFlow
For VS 2019
I spent hours to see runnable tests on test explorer. I am using SpecFlow.xUnit
nuget it installs SpecFlow as a dependency and I installed xunit.runner.visualstudio
as test runner. Also SpecFlow.Tools.MsBuild.Generation
nuget should be installed as mentioned on SpecFlow's getting started page. After seperating feature and generated cs file into different folders in test project I started to run tests on spec. In addition you can see .feature.cs
file if you click show all files on your solution explorer.