How to send cypress test results to xray using github actions?

Taus Gondal December 23, 2021

Hi Everyone,

I hope you all are doing really well. Recently, we installed xray plugin for Jira cloud. We have setup cypress for test automation and uses junit reporter which gives test-result xml file, locally we see a report being generated but when run in github using github actions how should we send the report to xray? I really appreciate your help. Thank you

Kind regards,

3 answers

1 vote
Stefan Salzl
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 13, 2022

Hi @Taus Gondal 

As I was dealing (successfully) with the same issue lately I came across this question. 

Could you solve the problem meanwhile?

Best
Stefan

0 votes
Sebastian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 11, 2023

For future readers: you can link Cypress and Xray with the Cypress Xray Plugin. When using it, you can easily link specific test cases in Cypress with test issues in Xray or upload execution results including screenshots. It also does not care whether it's being run on your local machine or in CI/CD setups such as GitHub actions.

npm: https://www.npmjs.com/package/cypress-xray-plugin

Documentation & Examples: https://qytera-gmbh.github.io/projects/cypress-xray-plugin/ 

 

Disclaimer: I am the author of said plugin.

 

Kind regards,

Sebastian

Greg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2024

Question for the author of said plugin...

I recently attempted to use the cypress-xray-plugin and ran into an issue with it being able to read import statements using alias "@". 

For example, in my common.spec.js file:

import { page } from '@/pages/page.js';

 

Console Output:

✘ [ERROR] Could not resolve "@/pages/page.js"

 

Any suggestions?

Sebastian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 17, 2024

Hi @Greg

I don't understand how this is a cypress-xray-plugin issue. It does not read import statements anywhere at all. Would you mind elaborating a little bit on your problem? It sounds like a project setup issue to me.

0 votes
Rogério Paiva - Xray Xporter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2022

Hi @Taus Gondal 

Please follow this documentation page to help integrate GitHub with Xray (https://docs.getxray.app/display/XRAY/Integration+with+GitHub).

Any additional questions, please get in touch with Xray Support (http://Xraysupport.getXray.app); we would gladly assist you.

Thank you.

Kind regards,
Rogerio Paiva [Xray Support Team]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events