Xray-App / xray-junit-extensions

Enhanced JUnit 5 integration with Xray Test Management for Jira
Eclipse Public License 2.0
16 stars 8 forks source link

Is there a way to generate the requirement attribute in the junit xml directly from pytest code? #23

Closed smcdonou closed 1 year ago

smcdonou commented 2 years ago

Hello Sergio. Your colleague, Ana, directed us here. We are new to Xray, and currently trying to hook requirements into the automatically created tests. Tests are currently in pytest, and the developer was able to create a junit xml report to send to xray. Ana has told us if we add a requirement attribute to the report, we can get this requirement information, and sent us this link. However, this seems more related to java tests, than to python. I saw the tutorial on python-behave, but we are not using behave. Is there a way to generate the requirement attrribute in the xml directly from the pytest code? Hoping you can help, thanks.

bitcoder commented 2 years ago

Hi @smcdonou , this project is focused strictly on JUnit framework (for Java). Nevertheless, I can tell you in advance that we don't have a tutorial showcasing how to perform something similar using Pytest, at least for the time being. That requires a bit of investigation and effort; I don't have any estimate on that for now but ideas or a PoC are welcome for sure (not on this project, but on a new one to be created). Please follow me on Twitter, as once in a while I post the tutorials that we make or some useful resources in case I find them.

bitcoder commented 1 year ago

I will close as this question has been answered. Thanks