Skip to content

Commit

Permalink
fix(testing): add --quiet cypress executor option
Browse files Browse the repository at this point in the history
  • Loading branch information
barbados-clemens committed May 1, 2023
1 parent d8f9af8 commit d3bb837
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 d3bb837

Please sign in to comment.