Skip to content

How To Output Debugging Log When Running Cypress within DevOps Pipeline #29440

Discussion options

You must be logged in to vote

I have gotten the following to work:

Package.json: cross-env is installed and in script "test", first call cross-env package to set the standard Cypress debug filter variable to (cypress:*)

{
  "name": "cypressscripts",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "cross-env DEBUG=cypress:* npx cypress run", 
    "cypressif": "npm i -D cypress-if"
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "cypress": "^13.2.0"
  },
  "dependencies": {
    "cypress-mochawesome-reporter": "^3.3.0",
    "cypress-multi-reporters": "^1.6.3",
    "junit-report-merger": "^6.0.0",
    "mocha": "^10.2.0",
    "mocha-junit-reporter": "^2.2.0",
…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Vincent-Lz-Zhang
Comment options

@Vincent-Lz-Zhang
Comment options

Answer selected by Vincent-Lz-Zhang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants