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

Pass the feature's name to a step #175

Closed
festo opened this issue May 24, 2019 · 3 comments · Fixed by #409
Closed

Pass the feature's name to a step #175

festo opened this issue May 24, 2019 · 3 comments · Fixed by #409

Comments

@festo
Copy link

festo commented May 24, 2019

Hi @l3pp4rd!

Is there a way to pass the current scenario/feature definition to a step? I would like to log each HTTP requests that we send to our API and I need to attach the current feature name and scenario name. I was thinking to use the hooks somehow but I think if I run the tests parallel that couldn't work.

@l3pp4rd
Copy link
Member

l3pp4rd commented May 24, 2019

Hi, yes currently when parallel it will not work, I'm planning to at some point change the gherkin so that each node could have a parent node. that would be a good solution to many cases we have

@festo
Copy link
Author

festo commented May 24, 2019

Thanks for this quick answer. May I know approximately when do you plan to do it, in weeks or in months or in the far future? :)

@l3pp4rd
Copy link
Member

l3pp4rd commented May 24, 2019

I cannot know that, since this project is not related to my daily work. if that is important for you, you can run through the gherkin package and make the change in PR. I think, that can be accepted since that is useful for many parts of code.

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

Successfully merging a pull request may close this issue.

2 participants