Skip to content

Fix #2571: Expand data-driven block name before BeforeAll execution#2711

Closed
nohwnd wants to merge 1 commit into
mainfrom
fix/2571-data-driven-name-expansion
Closed

Fix #2571: Expand data-driven block name before BeforeAll execution#2711
nohwnd wants to merge 1 commit into
mainfrom
fix/2571-data-driven-name-expansion

Conversation

@nohwnd

@nohwnd nohwnd commented Jun 16, 2026

Copy link
Copy Markdown
Member

Fixes #2571

When a data-driven Describe (-ForEach) has a BeforeAll that throws, the block name template was not expanded with the current data item. The error output showed literal <_> instead of the actual values.

This fix ensures name expansion happens before BeforeAll runs, so error messages always show the resolved name.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nohwnd

nohwnd commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

Closing — not interesting enough for the 6.0.0 release.

@nohwnd nohwnd closed this Jun 16, 2026
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.

Error in BeforeAll of Data driven tests leads to missing info in the error output

1 participant