SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.25k stars 754 forks source link

LivingDoc navigation for features with same feature title is faulty #2247

Closed keisop closed 3 years ago

keisop commented 3 years ago

SpecFlow Version:

Used Test Runner

Version number: 3.5.14

Project Format of the SpecFlow project

.feature.cs files are generated using

Visual Studio Version

Enable SpecFlowSingleFileGenerator Custom Tool option in Visual Studio extension settings

Are the latest Visual Studio updates installed?

.NET Framework:

Test Execution Method:

livingdoc feature-folder [..]\ASP.NET-MVC\BookShop\BookShop.AcceptanceTests\Mapping_Navigation Bug --title "Projectname or custom title"

<SpecFlow> Section in app.config or content of specflow.json

{
  "stepAssemblies": [
    {
      "assembly": "BookShop.WebTests.Selenium"
    }
  ],

  "livingDocGenerator": {
    "enabled": true,
    "filepath": "TestExecution.json"
  }
}

Issue Description

feature files in different folders can have the same feature title. when generating living doc with living doc generator, navigation in the tree will only ever open the first feature file with that title.

when you try to navigate to a scenario which title does not exist in said first feature file, then you get a blank page and cant navigate back anymore and have to reopen the html entirely (i could not try out how this would behave in azure devops).

Steps to Reproduce

see attached gif 2021-01-03_17h48_42

also attached the generated living doc html (in zip file) LivingDoc_featureNavigationBug.zip

Repro Project

https://github.com/keisop/SpecFlow-Examples/tree/BookShopStructure/ASP.NET-MVC/BookShop/BookShop.AcceptanceTests/Mapping_Navigation%20Bug

epresi commented 3 years ago

Thanks for the repro and for the gif! This issue is very well described! We found the problem and will be fixed in the next release.

nemesv commented 3 years ago

This issue is fixed in SpecFlow.Plus.LivingDoc.CLI version 3.5.279

github-actions[bot] commented 3 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.