SpecFlow.Rider icon indicating copy to clipboard operation
SpecFlow.Rider copied to clipboard

Add ability to navigate to feature file from unit tests window

Open ShinKaiRyuu opened this issue 3 years ago • 10 comments

Right now navigating from unit tests window lead to nunit generated code instead of Feature file with scenario. @Socolin Is it issue and it will be resolved or this is out of this plugin responseabilty issue? image

ShinKaiRyuu avatar Mar 04 '21 11:03 ShinKaiRyuu

Hello,

Since the Rider test explorer already find the tests by searching for NUnit / XUnit attributes, we don't have much control on that.

I'll take a look if Rider offer some API to do this, I did not see anything so far. Maybe in SpecflowTestExplorer we can remove the test and replace the IUnitTestElement with a new one that encapsulate the other, but it feels a bit hacky. And I don't know what would happen when the NUnitTestExplorer will update the tests.

Socolin avatar Mar 04 '21 13:03 Socolin

Ok so after askin to jetbrains, it seems this is not possible right now.

As a workaround we could add a new navigation to go from/to the test and the generated file (not perfect yet but better than nothing)

I asked Jetbrains if they could change their code to handle this scenario, I'm waiting for their answer.

Socolin avatar Mar 07 '21 00:03 Socolin

@Socolin Hello, any news from JetBrains ? For visual studio we specially added

<Compile Include="Features\**\*.feature.cs" Visible="false"> <AutoGen>True</AutoGen> <DesignTime>True</DesignTime> </Compile>

keys to csproj files to have possibility to move to Test cases from Test Explorer. Without this keys there was message with "No source"

ShinKaiRyuu avatar Mar 24 '21 13:03 ShinKaiRyuu

It should not be there before 2021.3 but here the story if you want to follow: https://youtrack.jetbrains.com/issue/RSRP-484008

Socolin avatar Apr 13 '21 13:04 Socolin

@Socolin any updates on this enchancement?

ShinKaiRyuu avatar Jun 07 '22 12:06 ShinKaiRyuu

@Socolin any updates on this enchancement?

Still waiting after rider to provide us a way to do this. https://youtrack.jetbrains.com/issue/RSRP-484008

Socolin avatar Jun 07 '22 12:06 Socolin

It's been a few weeks I'm testing Rider but yesterday I went back to Visual Studio because of this. So annoying

jmevel avatar Sep 20 '23 12:09 jmevel

This messes with my workflow; I have to switch back to VS for projects that use specflow.

Thomas-p2-Elliott avatar Jan 22 '24 11:01 Thomas-p2-Elliott

Any further updates?

GithubOllie avatar Aug 28 '24 14:08 GithubOllie

Any further updates?

SpecFlow is dead, you should use Reqnroll now.

I recreated this issue there

jmevel avatar Sep 02 '24 06:09 jmevel