Reputation: 63
In vs2019 test explorer shows "No source available" for my specflow tests, so double click will not end up going to the actual specflow test (feature file). Those unittests are generated through the "Specflow.Tools.MsBuild.Generation" nuGet package. The feature.cs files are ignored by Git and are not part of my project file. I am able to run them and after build they are discoverable (through NUnit 3 Test adapter visual studio extension).
I've tried numerous solutions, as in: - upgrading to sdk-style project (see https://github.com/techtalk/SpecFlow/issues/1457#issuecomment-491497035) - creating whole new project (full framework)
Any help would be appreciated! Thnx in advance.
Upvotes: 5
Views: 5348
Reputation: 694
For me, restarting VS (2022) solved the issue. Didn't have to change anything in code.
Upvotes: 0
Reputation: 2526
Adding Microsoft.NET.Test.Sdk in the test project and restarting Visual Studio fixed the issue for me.
Upvotes: 0
Reputation: 1054
In my case the expired license of Resharper was the reason of this issue. I clicked the button Start evaluation period and then restart VS.
Upvotes: 0