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

Create "unused step definitions" feature #110

Open
mpkorstanje opened this issue Aug 15, 2024 · 1 comment
Open

Create "unused step definitions" feature #110

mpkorstanje opened this issue Aug 15, 2024 · 1 comment

Comments

@mpkorstanje
Copy link
Contributor

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

It is not clear if an implementation should emit all step definitions, or only those used by a feature. It seems reasonable to me that all step definitions, used and unused are included. Formatters can then discard the data they do not need.

✨ What's your proposed solution?

Add a testcase with 1 used and 1 unused step definition. The resulting output should contain both.

⛏ Have you considered any alternatives or workarounds?

No response

📚 Any additional context?

No response

@luke-hill
Copy link
Contributor

We would need to document in the feature body that 2 step definitions should exist - one that is written and parsed as (a la Given('foo')), and the other that should be written but not in the single scenario (a la Given('bar'))

@luke-hill luke-hill changed the title Create unused step definitions Create "unused step definitions" feature Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants