Skip to content

Add suite documentation and metadata to xUnit outputs #4199

Closed

Description

@pekkaklarck

Based on pytest documentation xUnit outputs support adding properties on suite level. We could use them to include suite documentation and free suite metadata.

pytest also has a way to add properties to tests, but there's this warning as well:

The generated XML is compatible with the latest xunit standard, contrary to record_property and record_xml_attribute.

It's thus probably best we only add properties to suites.

We already have PR #4193 for that so this is pretty much ready and can easily make it to RF 5.0. That release already has other xUnit enhancements (#4074 and #2982).

This enhancement is inspired by #3944 that proposed adding separate callable (presumably a keyword) for adding properties for xUnit file similarly as pytest supports. Having some custom properties only in xUnit outputs doesn't feel that good and we decided to just write existing documentation and metadata there. Both can be specified directly in data, give from the command line (only for top level suite), and there are keywords for modifying them during execution.

Activity

  1. added this to the v5.0 milestone on Jan 21, 2022
  2. added
    acknowledge
    on Jan 21, 2022
  3. pekkaklarck commented on Jan 21, 2022

    @pekkaklarck
    MemberAuthor

    Implemented in PR #4193 by @rikerfi. Thanks for contribution!

  4. added a commit that references this issue on Jul 15, 2025
    0630c23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgealpha 1priority: medium

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions