Skip to content
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

Highlight unused step definitions #160

Open
RomkeVdMeulen opened this issue May 5, 2023 · 0 comments
Open

Highlight unused step definitions #160

RomkeVdMeulen opened this issue May 5, 2023 · 0 comments
Labels
⚡ enhancement Request for new functionality

Comments

@RomkeVdMeulen
Copy link

🤔 What's the problem you're trying to solve?

As the chaos of normal development with multiple devs/teams continues, it is not unusual for a feature file to change. To keep the code base neat, it is a good idea to remove any step definitions that are no longer in use after such changes. However, finding such unused step definitions manually is hard work. Perhaps this plugin can do so automatically.

✨ What's your proposed solution?

Add an inspection that highlights unused step definitions in code, or a command to output a list of unused step definitions.

⛏ Have you considered any alternatives or workarounds?

Doing this manually is possible, but error-prone.

There are tools that plugin to the various cucumber runtimes to detect unused step definitions. However, they're not available for every runtime supported by this plugin.

📚 Any additional context?

For the project I'm working on right now I'm using Cypress with a pre-processor. I was happy to find that this plugin had no trouble recognizing the step definitions anyway, so navigation and auto-complete work.


This text was originally generated from a template, then edited by hand. You can modify the template here.

@kieran-ryan kieran-ryan added the ⚡ enhancement Request for new functionality label Dec 3, 2023
@kieran-ryan kieran-ryan changed the title Feature request: Find unused step definitions Find unused step definitions Jan 2, 2024
@kieran-ryan kieran-ryan changed the title Find unused step definitions Highlight unused step definitions Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

2 participants