Skip to content

Commit

Permalink
fix(testing): add --quiet cypress executor option (#16680)
Browse files Browse the repository at this point in the history
(cherry picked from commit 179930f)
  • Loading branch information
barbados-clemens authored and FrozenPandaz committed May 1, 2023
1 parent c9f37fe commit d71da82
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/generated/packages/cypress/executors/cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@
{ "type": "number" }
],
"description": "Pass a specified port value to the devServerTarget, if the value is 'cypress-auto' a free port will automatically be picked for the devServerTarget."
},
"quiet": {
"aliases": ["q"],
"type": "boolean",
"description": "If passed, Cypress output will not be printed to stdout. Only output from the configured Mocha reporter will print.",
"default": false
}
},
"additionalProperties": true,
Expand Down
4 changes: 4 additions & 0 deletions packages/cypress/src/executors/cypress/cypress.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface CypressExecutorOptions extends Json {
testingType?: 'component' | 'e2e';
tag?: string;
port?: number | 'cypress-auto';
quiet?: boolean;
}

interface NormalizedCypressExecutorOptions extends CypressExecutorOptions {
Expand Down Expand Up @@ -291,6 +292,9 @@ async function runCypress(
if (opts.reporterOptions) {
options.reporterOptions = opts.reporterOptions;
}
if (opts.quiet) {
options.quiet = opts.quiet;
}

options.testingType = opts.testingType;

Expand Down
6 changes: 6 additions & 0 deletions packages/cypress/src/executors/cypress/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@
}
],
"description": "Pass a specified port value to the devServerTarget, if the value is 'cypress-auto' a free port will automatically be picked for the devServerTarget."
},
"quiet": {
"aliases": ["q"],
"type": "boolean",
"description": "If passed, Cypress output will not be printed to stdout. Only output from the configured Mocha reporter will print.",
"default": false
}
},
"additionalProperties": true,
Expand Down

0 comments on commit d71da82

Please sign in to comment.