Skip to content

Titlepath tree#240

Merged
epszaw merged 15 commits intomainfrom
titlepath-tree
Jul 15, 2025
Merged

Titlepath tree#240
epszaw merged 15 commits intomainfrom
titlepath-tree

Conversation

@todti
Copy link
Copy Markdown
Collaborator

@todti todti commented Jul 1, 2025

  • add tree hierarchy by Title path for Allure Awesome plugin as default groupBy


for (const layer of itemGroups) {
if (layer.length === 0) {
if (layer?.length === 0) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to check !layer?.length because if the length is not available layer?.length equals to undefined and the condition is falsy

@todti todti force-pushed the titlepath-tree branch from 612abe5 to e978ac4 Compare July 2, 2025 15:25
@todti todti requested review from delatrie and epszaw July 2, 2025 15:26
@todti todti force-pushed the titlepath-tree branch 3 times, most recently from 846994c to 4f2ebba Compare July 7, 2025 09:03
const treeLabels = hasGroupBy
? preciseTreeLabels(groupBy, convertedTrs, ({ labels }) => labels.map(({ name }) => name))
: [];
// const treeLabels = preciseTreeLabels(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leftovers?

| `theme` | Default color theme of the report | `light \| dark` | OS theme |
| `reportLanguage` | Default language of the report | `string` | OS language |
| `ci` | CI data which will be rendered in the report | `{ type: "github" \| "jenkins", url: string, name: string }` | `undefined` |
| `groupBy` | By default, tests are grouped using the `titlePath` provided by the test framework. | `string`| Grouping by `titlepath` |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, tests are grouped using the titlePath provided by the test framework.

Let's also explain what this parameter does, not only what the default value is.

const processTestResult = async (visitor: ResultsVisitor, result: Partial<TestResult>, originalFileName: string) => {
const dest: RawTestResult = {
uuid: ensureString(result.uuid),
titlePath: result?.titlePath?.length ? result.titlePath : [],
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reminder for me to create an issue for a fallback.

@epszaw epszaw merged commit 56fadab into main Jul 15, 2025
5 checks passed
@epszaw epszaw deleted the titlepath-tree branch July 15, 2025 13:12
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.

3 participants