Back to QMetry All Products Help Page
Test using Cypress
Starting December 5, 2025 (QMetry Test Management for Jira v4.15.1), the QMetry Test Management for Jira documentation moved from its location on Atlassian to a dedicated, standalone QMetry Test Management for Jira documentation page. For the latest updates, refer to Test Using Cypress.
Users can integrate Cypress results with QTM4J. QMetry supports importing framework files in JUnit, TestNG, QAF, Cucumber, and SpecFlow formats out of the box. Once the automation project is executed, Cypress generates the test results in JUnit/XML format using the mocha-junit-reporter package. The generated test results file can then be imported into QTM4J.
→ For Cypress versions above v9.x
Perform the following steps to generate the result files in JUnit/XML:
Download the required
npmpackages.npm install mocha-multi-reporters cypress-mochawesome-reporter mocha-junit-reporterConfigure Reporters in the
cypress.config.jsfileNavigate to Project Root Folder > open
cypress.config.jsAppend the following code within the module.exports object:
reporter: 'mocha-multi-reporters', reporterOptions: { reporterEnabled: 'cypress-mochawesome-reporter, mocha-junit-reporter', mochaJunitReporterReporterOptions: { mochaFile: 'cypress/reports/junit/test-results-[hash].xml', toConsole: true, testsuitesTitle: 'Cypress Test Suite', suiteTitleSeparatedBy: ' - ', // This ensures better structuring of test suites includePending: true // IMPORTANT: Ensures skipped tests are included } }
Run your test
Run your test with
npx cypress run --spec "cypress/e2e"This will execute all the spec.js files and generate the test results inside ProjectRootFolder/cypress/reports/junit.
→ For Cypress v9.x and below
Refer to the following article to generate test result files in JUNIT/XML:
→ Test Result Import
Once the test result files are generated in JUnit/XML format, refer to the following pages to import the result files into QTM4J.
Back to QMetry All Products Help Page