Skip to content

Use scenarios shortcut in generated tests#808

Open
Herrtian wants to merge 1 commit intopytest-dev:masterfrom
Herrtian:use-scenarios-in-generator
Open

Use scenarios shortcut in generated tests#808
Herrtian wants to merge 1 commit intopytest-dev:masterfrom
Herrtian:use-scenarios-in-generator

Conversation

@Herrtian
Copy link
Copy Markdown

@Herrtian Herrtian commented May 1, 2026

Fixes #535.

This updates the generated test template to use scenarios(...) once per feature instead of emitting a separate @scenario(...) wrapper for each scenario. The generated step definitions stay the same.

Also updated the generator tests to match the new output.

@Herrtian Herrtian force-pushed the use-scenarios-in-generator branch from a4b9a63 to c3d2d99 Compare May 1, 2026 15:19
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.

Scenario generation should use scenarios shortcut

1 participant