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

Add current test, scenario and step to Context #121

Closed
jirikuncar opened this issue Jun 30, 2020 · 2 comments · Fixed by #140
Closed

Add current test, scenario and step to Context #121

jirikuncar opened this issue Jun 30, 2020 · 2 comments · Fixed by #140
Labels
enhancement New feature or request

Comments

@jirikuncar
Copy link
Collaborator

jirikuncar commented Jun 30, 2020

Is your feature request related to a problem? Please describe.

  1. I am using VCR library to record requests from client library to server and I would like to use correct cassette name depending from which scenario/step the request has been made.
  2. I would like to create tracing span for each step and have them grouped by scenario.

Describe the solution you'd like
Add information about current test, scenario and step to context.

https://github.com/go-bdd/gobdd/blob/master/gobdd.go#L307

Describe alternatives you've considered
-

Additional context
See https://pytest-bdd.readthedocs.io/en/latest/#hooks

@jirikuncar jirikuncar added the enhancement New feature or request label Jun 30, 2020
This was referenced Jun 30, 2020
@bkielbasa
Copy link
Collaborator

Hi! Is the feature still needed?

@jirikuncar
Copy link
Collaborator Author

jirikuncar commented Feb 22, 2021

Yes. There is still no way to access the scenario or step from test hooks. I am particularly interested in scenario path and tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants