-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Multiple Levels of Hierarchy in the Tree View #366
Comments
Thanks a lot for this detailed description. It sounds like an interesting feature. |
Introduced an optional feature to group feature files by their directory paths in the tree view, providing a better overview of features for teams that organize them by functionality in nested directories. The default behavior remains unchanged, with features listed without grouping for backward compatibility. Added new configuration options: - `groupFeaturesByPath`: Enables or disables path-based grouping (default: false). - `removableBasePaths`: Specifies base paths to strip from feature file URIs before grouping. - `directoryNameFormatter`: Customizes how directory names are displayed in the grouped tree view. Fixes trivago#366
Introduced an optional feature to group feature files by their directory paths in the tree view, providing a better overview of features for teams that organize them by functionality in nested directories. The default behavior remains unchanged, with features listed without grouping for backward compatibility. Added new configuration options: - `groupFeaturesByPath`: Enables or disables path-based grouping (default: false). - `removableBasePaths`: Specifies base paths to strip from feature file URIs before grouping. - `directoryNameFormatter`: Customizes how directory names are displayed in the grouped tree view. Fixes trivago#366
I hope it's ok that I proposed an implementation of this change via PR #370. Happy to continue the discussion there. |
At the moment, Cluecumber development is paused due to higher priorities. So it will take some more time for us to look at your proposed PR. |
Is your feature request related to a problem? Please describe.
When working with many feature files in projects that follow a hierarchical directory structure (as recommended in Cucumber's blog on organizing feature files), the current Tree View in Cluecumber becomes difficult to navigate because it does not reflect the structure beyond the feature/scenario grouping, making it more challenging to locate specific functionality or understand the organization of the test suite.
Example of a folder structure:
Describe the solution you'd like
Support for Multiple Levels of Hierarchy in the Tree View:
/features/
) via configuration (or automaticallt detect shared base paths).Readable Directory Names:
DisplayNameGenerator
in JUnit 5):snake_case
toSnake Case
(replace underscores with spaces and capitalize each word).camelCase
orPascalCase
intoCamel Case
orPascal Case
.Optional: Markdown Support for Living Documentation:
index.md
files in the feature file folder structure to act as headings and descriptions:#
) from the markdown file as the folder name in the Tree View.Describe alternatives you've considered
Additional context
Made up example with some questionable formatting, but should help illustrate my point:
How do you currently address the challenge of organizing and navigating through many scenarios? Would this proposal align with your usage, and is it something you would consider?
The text was updated successfully, but these errors were encountered: