You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add suite documentation and metadata to xUnit outputs #4199
Based on pytest documentation xUnit outputs support adding properties on suite level. We could use them to include suite documentation and free suite metadata.
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
pekkaklarck commentedon Jan 21, 2022
Implemented in PR #4193 by @rikerfi. Thanks for contribution!
Add suite documentation and metadata to xUnit outputs (robotframework…