Cypress automated tests integration
RevDeBug trace id can be included in Cypress error reports for easier root cause detection for failed automated end to end tests.

Prerequisite

Installed and configured RevDeBug Node.JS module - please refer to JavaScript section.

Usage

From command line at the cypress project root directory add reference to the @revdebug module repository:
1
npm config set @revdebug:registry https://nexus.revdebug.com/repository/npm/
Copied!
Then install RevDeBug Cypress plugin:
1
npm install @revdebug/cypress-plugin-revdebug
Copied!
The last step is to add to cypress/support/index.js file at bottom:
1
require('@revdebug/cypress-plugin-revdebug')
Copied!

Expected results

Failed automated tests will report "RevDeBug trace" at the top of the error message as shown below. The trace id can be used to locate transactions at "Trace" tab at RevDeBug web interface and access detailed frontend and backend code execution recordings.
Last failed request trace id appended to Cypress error message.
The same trace id visible from RevDeBug web interface with detailed recording of whole transaction available to the developer.
Last modified 7mo ago