- We are using test automation in Go
- We are using XRay to manage our tests in Jira
- In our CI/CD pipeline, we are running gotestsum to create JUnit test output in a results.xml file
- In our CI/CD pipeline we are uploading the results.xml via XRay API
- https://docs.getxray.app/display/XRAY/v2.0#/Import/post-import-execution
- Our test results land in Jira and are visible
What I want to do is, somewhere in the test definition in Go, make a reference to a feature requirement and have the test case linked automatically in Jira so that it counts as 'coverage'.
It looks like I should be able to insert the Requirement ID into the JUnit output using a test log formatter, but I am not sure how to transform this into the XRay payload and where it need to go in the XRay payload .
Wondering if anyone else has managed to achieve this?