cypress-xray-plugin-v15-compat (version 1.0.0) is a Cypress plugin designed for integrating test results with Xray, a test management tool for Jira (supporting both Server/DC and Cloud versions). This package is specifically noted as a fork, inheriting much of its functionality and documentation from the actively maintained `qytera-gmbh/cypress-xray-plugin` (itself a fork of `csvtuda/cypress-xray-plugin`). It facilitates uploading Cypress test results, including attaching screenshots, web requests, and videos as test execution evidence to Xray. Key features encompass the ability to reuse existing Xray test execution and test plan issues, CI/CD readiness through environment variables for credentials, and robust Cucumber integration for synchronizing step definitions and uploading results. This specific compatibility version is designed to work with modern Cypress environments (requiring Cypress >=10.0.0 and Node.js >=18.0.0), providing comprehensive Xray integration directly from Cypress, covering various evidence types and secure authentication mechanisms.
npm install cypress-xray-plugin-v15-compatVerified import paths — ran on the pinned version, not inferred.
Shows how to install the plugin and integrate it into a Cypress project's `cypress.config.ts` using `configureXrayPlugin`, including basic Jira project setup.
Always use `npx cypress run` for test executions intended for Xray result upload, especially in CI/CD pipelines.
Refer to the documentation and issue tracker of this specific compatibility fork (CaiqueCoelho/cypress-xray-plugin) for precise behavior, known limitations, and support.
Ensure all required Jira/Xray authentication environment variables are correctly set and accessible in the CI/CD pipeline or local environment where Cypress is executed. Consult the authentication section of the plugin's documentation for details.
Verify that `XRAY_CLIENT_ID`, `XRAY_CLIENT_SECRET`, or `JIRA_USERNAME` and `JIRA_PASSWORD` environment variables are correctly set and accessible to the Cypress process.
Ensure Xray issue keys in Cypress test titles (e.g., `it("PRJ-42 My test", ...)`) are valid and correspond to existing Xray Test issues. Check the Xray API logs or plugin verbose output for more specific error messages.Ensure your `cypress.config.ts` file correctly exports `defineConfig` and that `setupNodeEvents` is defined as an `async` function, as shown in the quickstart example.