Open MikeMcC399 opened 21 hours ago
The cypress run --quiet CLI option does not suppress all Cypress stdout output. Test spec steps, such as the following, are output:
stdout
template spec ✓ passes (421ms) 1 passing (2s)
According to cypress run Options, there should be no stdout output if --quiet or -q are passed:
--quiet
-q
In a project with no Mocha reporter configured, running Cypress in a bash shell, the output from:
bash
npx cypress run --quiet
and
npx cypress run > /dev/null
should be identical.
Scaffold a Cypress E2E project with the single default cypress/e2e/spec.cy.js
cypress/e2e/spec.cy.js
describe('template spec', () => { it('passes', () => { cy.visit('https://example.cypress.io') }) })
Execute:
13.16.0
v22.11.0 LTS
v22.11.0
Ubuntu 24.04.1 LTS
24.04.1
$ 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)
@MikeMcC399, by default we use the spec mocha reporter so I think the test steps, etc. are accurate to what the doc says. The dev tools output would ideally not be present though i think?
Current behavior
The cypress run --quiet CLI option does not suppress all Cypress
stdout
output. Test spec steps, such as the following, are output:Desired behavior
According to cypress run Options, there should be no
stdout
output if--quiet
or-q
are passed:--quiet
,-q
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:and
should be identical.
Test code to reproduce
Scaffold a Cypress E2E project with the single default
cypress/e2e/spec.cy.js
Execute:
Cypress Version
13.16.0
Node version
v22.11.0
LTSOperating System
Ubuntu
24.04.1
LTSDebug Logs
Other