Skip to content

run --quiet CLI option outputs test steps #30661

@MikeMcC399

Description

@MikeMcC399

Current behavior

The cypress run --quiet CLI option does not suppress all Cypress stdout output. Test spec steps, such as the following, are output:

  template spec
    ✓ passes (421ms)


  1 passing (2s)

Desired behavior

According to cypress run Options, there should be no stdout output if --quiet or -q are passed:

Option Description
--quiet, -q If passed, Cypress output will not be printed to stdout. Only output from the configured Mocha reporter will print.

In a project with no Mocha reporter configured, running Cypress in a bash shell, the output from:

npx cypress run --quiet

and

npx cypress run > /dev/null

should be identical.

Test code to reproduce

Scaffold a Cypress E2E project with the single default cypress/e2e/spec.cy.js

describe('template spec', () => {
  it('passes', () => {
    cy.visit('https://example.cypress.io')
  })
})

Execute:

npx cypress run --quiet

Cypress Version

13.16.0

Node version

v22.11.0 LTS

Operating System

Ubuntu 24.04.1 LTS

Debug Logs

$ npx cypress run --quiet

DevTools listening on ws://127.0.0.1:39903/devtools/browser/01a687fe-8df0-41a4-b4b4-67217f4a1d1f


  template spec
    ✓ passes (421ms)


  1 passing (2s)

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions