Adding support for JUnit extensions used by the XRay plugin for Jira #13103
Labels
plugin: junitxml
related to the junitxml builtin plugin
type: proposal
proposal for a new feature, often to gather opinions or design the API around the new feature
What's the problem this feature will solve?
The Xray plugin for Jira (https://docs.getxray.app/display/XRAY/Taking+advantage+of+JUnit+XML+reports) uses an extended JUnit format to store e.g. the test description and test evidence:
name="test_description"
: link to Xray documentationitem
Elements inside aproperty
Element withname="test_evidence"
: link to Xray documentationThe current implementation of pytest's
record_property()
fixture does not allow for these use cases.Describe the solution you'd like
I've started writing a plugin to address these issues: https://github.com/PascalVaudrevange/pytest-junit-xray-xml by rewriting the JUnit export and providing Xray-specific fixtures. It's currently work in progress (so e.g. the JUnit-family selection is not implemented yet) and has not been thoroughly tested yet.
Alternative Solutions
Alternatively, one could probably use NUnit export, but this would require NUnit support along the CI/CD chain - in my use case, this is not the case.
Additional context
I'm happy to write the plugin. With this feature request I'd like to
pytest
(see next point)pytest
itself into a plugin, so this might be another use case for the plugin above. But I might misremember.The text was updated successfully, but these errors were encountered: