Skip to content

feat: added testcase metadata to report - #5743

Open
febb0e wants to merge 1 commit into
robotframework:masterfrom
imbus:feature/test-metadata-in-report
Open

feat: added testcase metadata to report#5743
febb0e wants to merge 1 commit into
robotframework:masterfrom
imbus:feature/test-metadata-in-report

Conversation

@febb0e

@febb0e febb0e commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

This pull request enhances the HTML report by adding support for showing test case metadata in the details table. The changes help that metadata is shown only when present, and that sorting and column toogles work correctly with the new metadata column. Test automation and validation scripts are also updated.

Rebot HTML report improvements:

  • Added a new "Metadata" column to the test details table, which is displayed only if at least one test case contains metadata.
  • Updated JavaScript logic in report.html to detect the presence of metadata, render the column, and adjust table sorting.
  • Added CSS rules for the new .details-col-metadata class to ensure proper column width and alignment.

Test and validation updates:

  • Fixed a typo in test keywords and extended validation to check for metadata in all relevant HTML outputs, including those generated by Rebot.

Copilot AI lite review requested due to automatic review settings August 13, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request updates Rebot’s HTML report so that test case metadata can be displayed in the test details table when present, while keeping column toggling and table sorting consistent regardless of whether the new column is rendered.

Changes:

  • Added conditional rendering of a new “Metadata” column in the test details table (shown only when at least one test has metadata).
  • Updated report JavaScript to detect metadata presence and to adjust tablesorter column indices accordingly.
  • Updated acceptance tests to validate metadata presence in Robot and Rebot generated HTML outputs, and fixed a keyword typo.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/robot/htmldata/rebot/report.html Adds metadata detection, conditional column rendering, and sorting/index adjustments for the test details table.
src/robot/htmldata/rebot/report.css Adds styling for the new .details-col-metadata column.
atest/robot/parsing/test_metadata.robot Fixes “metadate” typo and extends coverage to Rebot-generated log/report HTML outputs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@febb0e febb0e mentioned this pull request Aug 13, 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.

2 participants