Skip to content

feat: add examples tag to scenario tags#771

Open
chapellu wants to merge 5 commits into
pytest-dev:masterfrom
chapellu:master
Open

feat: add examples tag to scenario tags#771
chapellu wants to merge 5 commits into
pytest-dev:masterfrom
chapellu:master

Conversation

@chapellu

@chapellu chapellu commented Apr 2, 2025

Copy link
Copy Markdown

No description provided.

@jsa34

jsa34 commented Apr 9, 2025

Copy link
Copy Markdown
Collaborator

Thanks for the PR!

Could you add tests for this?

@chapellu

chapellu commented Apr 14, 2025

Copy link
Copy Markdown
Author

@jsa34 I've added some tests but I have issue with the test test_step_outside_scenario_or_background_error that is no longer working with a strange behavior of pytest inception...

@chapellu

Copy link
Copy Markdown
Author

@jsa34 I have the feeling that a step outside a scenario no longer raised an error in get_gherkin_document

@chapellu

Copy link
Copy Markdown
Author

@jsa34 I finally had time to debug a bit and the issue is that the step outside the scenario is interpreted as a comment
image

@chapellu

Copy link
Copy Markdown
Author

@jsa34 I'm removing the failing test as in my point of view the behavior that was tested is no longer relevant.
If you do not agree don't hesitate to comment otherwise the PR will be ready for you to merge

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 this pull request may close these issues.

2 participants