Skip to content

Respect [AllureName] by titlePath of xUnit tests#660

Merged
delatrie merged 2 commits into
mainfrom
titlePath-parameterized
Jun 23, 2026
Merged

Respect [AllureName] by titlePath of xUnit tests#660
delatrie merged 2 commits into
mainfrom
titlePath-parameterized

Conversation

@delatrie

Copy link
Copy Markdown
Contributor

Context

The PR allows renaming the type node of a titlePath created via CreateTitlePath by applying [AllureName(...)], which helps avoid non-user-friendly type names (such as types with generic parameters or nested types).

Currently, this only affects xUnit.net, as Allure.NUnit uses NUnit-provided names for titlePath, and Allure.Reqnroll uses feature/scenario names.

Additionally, the PR adds a new CreateTitlePath overload that takes an instance of MethodInfo. This overload also respects [AllureName] at the type and method levels.

Checklist

@delatrie delatrie force-pushed the titlePath-parameterized branch from 6b1c410 to 69ca472 Compare June 22, 2026 12:19
@delatrie delatrie marked this pull request as ready for review June 22, 2026 13:17
@delatrie delatrie merged commit 6690449 into main Jun 23, 2026
6 checks passed
@delatrie delatrie deleted the titlePath-parameterized branch June 23, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants