Merge pull request #18371 from cypress-io/issue-447-configure-slow-test-threshold

feat: Add 'slowTestThreshold' and fix `this.slow()` inside specs
This commit is contained in:
Blue F
2021-10-14 10:21:26 -07:00
committed by GitHub
14 changed files with 3078 additions and 2569 deletions

View File

@@ -91,6 +91,10 @@ declare namespace CypressCommandLine {
* Specify mocha reporter options
*/
reporterOptions: any
/**
* Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold.
*/
slowTestThreshold: number
/**
* Specify the specs to run
*/

View File

@@ -2572,6 +2572,11 @@ declare namespace Cypress {
* @default "spec"
*/
reporterOptions: { [key: string]: any }
/**
* Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in yellow if over the threshold. Defaults to 10000ms for e2e tests and 250ms for component tests.
* @default null
*/
slowTestThreshold: number | null
/**
* Whether Cypress will watch and restart tests on test file changes
* @default true