Skip to content

Add titlePath as the default test hierarchy path#1271

Merged
baev merged 1 commit into
mainfrom
title-path
May 8, 2026
Merged

Add titlePath as the default test hierarchy path#1271
baev merged 1 commit into
mainfrom
title-path

Conversation

@baev
Copy link
Copy Markdown
Member

@baev baev commented May 8, 2026

Context

This adds titlePath to Allure Java results as a structured, unambiguous hierarchy path for tests. Unlike package-based grouping, titlePath is stored as an array of path segments, so names containing dots or other punctuation are preserved instead of being split unexpectedly.

Allure Java integrations now populate titlePath from the test framework’s natural structure: Java packages and classes for class-based tests, nested containers for JUnit Platform, XML suite/test context for TestNG, source file paths and feature/story names for BDD-style frameworks, and native suite/spec information for Spock, ScalaTest, and Citrus. Existing labels, names, full names, history IDs, and test case IDs remain unchanged for compatibility.

For example, a Cucumber scenario in features/simple.feature with feature title Simple feature will now include a title path like ["features", "simple.feature", "Simple feature"], allowing reports to build a clearer default tree without relying on label splitting.

Checklist

@baev baev added the type:new feature Change that add something new for end users label May 8, 2026
@github-actions github-actions Bot added theme:junit4 JUnit 4 related issue theme:testng TestNG related issue theme:junit-platform JUnit 5 related issue theme:cucumber-jvm CucumberJVM related issue theme:jbehave JBehave related issue theme:spock Spock Framework related issue theme:citrus theme:model theme:core theme:karate theme:scalatest labels May 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 8, 2026

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1271 11m 32s Passed tests 961   Skipped tests 4 4 0 0

@baev baev merged commit 9d6a469 into main May 8, 2026
10 checks passed
@baev baev deleted the title-path branch May 8, 2026 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme:citrus theme:core theme:cucumber-jvm CucumberJVM related issue theme:jbehave JBehave related issue theme:junit4 JUnit 4 related issue theme:junit-platform JUnit 5 related issue theme:karate theme:model theme:scalatest theme:spock Spock Framework related issue theme:testng TestNG related issue type:new feature Change that add something new for end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants