From 1ff421fc71e39876f0ae32dd9d6ed1c2ba0826ea Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Tue, 5 Oct 2021 14:38:28 -0700 Subject: [PATCH 01/10] Add 'slow' option to configure slow test threshold --- cli/lib/cli.js | 3 +++ cli/lib/exec/run.js | 4 ++++ cli/lib/util.js | 1 + cli/schema/cypress.schema.json | 5 +++++ cli/types/cypress-npm-api.d.ts | 4 ++++ cli/types/cypress.d.ts | 5 +++++ packages/server/lib/config_options.ts | 4 ++++ packages/server/lib/project-base.ts | 13 ++++++++----- packages/server/lib/reporter.js | 21 ++++++++++++++------- packages/server/lib/util/args.js | 2 +- packages/server/test/support/helpers/e2e.ts | 4 ++++ packages/server/test/unit/config_spec.js | 1 + packages/server/test/unit/reporter_spec.js | 13 ++++++++++++- 13 files changed, 66 insertions(+), 14 deletions(-) diff --git a/cli/lib/cli.js b/cli/lib/cli.js index a0237380c5..8d6c3ea882 100644 --- a/cli/lib/cli.js +++ b/cli/lib/cli.js @@ -125,6 +125,7 @@ const descriptions = { record: 'records the run. sends test results, screenshots and videos to your Cypress Dashboard.', reporter: 'runs a specific mocha reporter. pass a path to use a custom reporter. defaults to "spec"', reporterOptions: 'options for the mocha reporter. defaults to "null"', + slow: '"slow" test threshold in milliseconds. defaults to 5000', spec: 'runs specific spec file(s). defaults to "all"', tag: 'named tag(s) for recorded runs in the Cypress Dashboard', version: 'prints Cypress version', @@ -264,6 +265,7 @@ const addCypressRunCommand = (program) => { .option('-r, --reporter ', text('reporter')) .option('-o, --reporter-options ', text('reporterOptions')) .option('-s, --spec ', text('spec')) + .option('-S, --slow ', text('slow')) .option('-t, --tag ', text('tag')) .option('--dev', text('dev'), coerceFalse) } @@ -451,6 +453,7 @@ module.exports = { .option('-r, --reporter ', text('reporter')) .option('-o, --reporter-options ', text('reporterOptions')) .option('-s, --spec ', text('spec')) + .option('-S, --slow ', text('slow')) .option('-t, --tag ', text('tag')) .option('--dev', text('dev'), coerceFalse) .action((opts) => { diff --git a/cli/lib/exec/run.js b/cli/lib/exec/run.js index b5fac314e8..03c59a3d4d 100644 --- a/cli/lib/exec/run.js +++ b/cli/lib/exec/run.js @@ -128,6 +128,10 @@ const processRunOptions = (options = {}) => { args.push('--reporter-options', options.reporterOptions) } + if (options.slow) { + args.push('--slow', options.slow) + } + // if we have specific spec(s) push that into the args if (options.spec) { args.push('--spec', options.spec) diff --git a/cli/lib/util.js b/cli/lib/util.js index da4729caab..f85fc242e0 100644 --- a/cli/lib/util.js +++ b/cli/lib/util.js @@ -220,6 +220,7 @@ const parseOpts = (opts) => { 'reporterOptions', 'record', 'runProject', + 'slow', 'spec', 'tag') diff --git a/cli/schema/cypress.schema.json b/cli/schema/cypress.schema.json index 617664c102..c269b6c1bc 100644 --- a/cli/schema/cypress.schema.json +++ b/cli/schema/cypress.schema.json @@ -44,6 +44,11 @@ "default": null, "description": "The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options" }, + "slow": { + "type": "number", + "default": 5000, + "description": "Slow test timeout passed to mocha. See See https://on.cypress.io/configuration#Global" + }, "testFiles": { "type": [ "string", diff --git a/cli/types/cypress-npm-api.d.ts b/cli/types/cypress-npm-api.d.ts index c60a347138..28e273fc5d 100644 --- a/cli/types/cypress-npm-api.d.ts +++ b/cli/types/cypress-npm-api.d.ts @@ -91,6 +91,10 @@ declare namespace CypressCommandLine { * Specify mocha reporter options */ reporterOptions: any + /** + * Specify a slow test threshold in milliseconds + */ + slow: number /** * Specify the specs to run */ diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 5dd65e6b05..1e7d4c1e30 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2572,6 +2572,11 @@ declare namespace Cypress { * @default "spec" */ reporterOptions: { [key: string]: any } + /** + * A slow test threshold in milliseconds + * @default 5000 + */ + slow: number | null /** * Whether Cypress will watch and restart tests on test file changes * @default true diff --git a/packages/server/lib/config_options.ts b/packages/server/lib/config_options.ts index 2c02b10dad..62990f0fcd 100644 --- a/packages/server/lib/config_options.ts +++ b/packages/server/lib/config_options.ts @@ -216,6 +216,10 @@ export const options = [ defaultValue: 'cypress/screenshots', validation: v.isStringOrFalse, isFolder: true, + }, { + name: 'slow', + defaultValue: 5000, + validation: v.isNumber, }, { name: 'socketId', defaultValue: null, diff --git a/packages/server/lib/project-base.ts b/packages/server/lib/project-base.ts index 7ccf66ded5..75c0b5cb90 100644 --- a/packages/server/lib/project-base.ts +++ b/packages/server/lib/project-base.ts @@ -38,7 +38,7 @@ import type { LaunchArgs } from './open_project' // and are required when creating a project. type ReceivedCypressOptions = Pick - & Pick // TODO: Figure out how to type this better. + & Pick // TODO: Figure out how to type this better. export interface Cfg extends ReceivedCypressOptions { projectRoot: string @@ -75,7 +75,7 @@ const localCwd = cwd() const debug = Debug('cypress:server:project') const debugScaffold = Debug('cypress:server:scaffold') -type StartWebsocketOptions = Pick +type StartWebsocketOptions = Pick export class ProjectBase extends EE { protected watchers: Watchers @@ -273,6 +273,7 @@ export class ProjectBase extends EE { report: cfg.report, reporter: cfg.reporter, reporterOptions: cfg.reporterOptions, + slow: cfg.slow, projectRoot: this.projectRoot, }) @@ -554,7 +555,8 @@ export class ProjectBase extends EE { reporter, projectRoot, reporterOptions, - }: Pick) { + slow, + }: Pick) { if (!report) { return } @@ -575,10 +577,10 @@ export class ProjectBase extends EE { }) } - return Reporter.create(reporter, reporterOptions, projectRoot) + return Reporter.create(reporter, reporterOptions, projectRoot, slow) } - startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, projectRoot }: StartWebsocketOptions) { + startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, slow, projectRoot }: StartWebsocketOptions) { // if we've passed down reporter // then record these via mocha reporter const reporterInstance = this.initializeReporter({ @@ -586,6 +588,7 @@ export class ProjectBase extends EE { reporter, reporterOptions, projectRoot, + slow, }) const onBrowserPreRequest = (browserPreRequest) => { diff --git a/packages/server/lib/reporter.js b/packages/server/lib/reporter.js index f4b09fad4f..a511a4b16f 100644 --- a/packages/server/lib/reporter.js +++ b/packages/server/lib/reporter.js @@ -70,9 +70,11 @@ const getParentTitle = function (runnable, titles) { return titles } -const createSuite = function (obj, parent) { +const createSuite = function (obj, parent, slow) { const suite = new Mocha.Suite(obj.title, {}) + suite.slow(slow) + if (parent) { suite.parent = parent } @@ -83,7 +85,7 @@ const createSuite = function (obj, parent) { return suite } -const createRunnable = function (obj, parent) { +const createRunnable = function (obj, parent, slow) { let fn const { body } = obj @@ -104,6 +106,9 @@ const createRunnable = function (obj, parent) { runnable._retries = obj._retries // shouldn't need to set _currentRetry, but we'll do it anyways runnable._currentRetry = obj._currentRetry + // Because of the way we create the runnables without belonging to an instantiated mocha object, + // we have to set the 'slow' speed for each test and suite individually + runnable.slow(slow) if (runnable.body == null) { runnable.body = body @@ -250,7 +255,7 @@ const reporters = { } class Reporter { - constructor (reporterName = 'spec', reporterOptions = {}, projectRoot) { + constructor (reporterName = 'spec', reporterOptions = {}, projectRoot, slow) { if (!(this instanceof Reporter)) { return new Reporter(reporterName) } @@ -258,6 +263,7 @@ class Reporter { this.reporterName = reporterName this.projectRoot = projectRoot this.reporterOptions = reporterOptions + this.slow = slow this.normalizeTest = this.normalizeTest.bind(this) } @@ -273,6 +279,7 @@ class Reporter { const reporter = Reporter.loadReporter(this.reporterName, this.projectRoot) this.mocha = new Mocha({ reporter }) + this.mocha.slow(this.slow) this.mocha.suite = rootRunnable this.runner = new Mocha.Runner(rootRunnable) mochaCreateStatsCollector(this.runner) @@ -301,7 +308,7 @@ class Reporter { switch (type) { case 'suite': // eslint-disable-next-line no-case-declarations - const suite = createSuite(runnableProps, parent) + const suite = createSuite(runnableProps, parent, this.slow) suite.tests = _.map(runnableProps.tests, (testProps) => { return this._createRunnable(testProps, 'test', suite) @@ -313,7 +320,7 @@ class Reporter { return suite case 'test': - return createRunnable(runnableProps, parent) + return createRunnable(runnableProps, parent, this.slow) default: throw new Error(`Unknown runnable type: '${type}'`) } @@ -472,8 +479,8 @@ class Reporter { }) } - static create (reporterName, reporterOptions, projectRoot) { - return new Reporter(reporterName, reporterOptions, projectRoot) + static create (reporterName, reporterOptions, projectRoot, slow) { + return new Reporter(reporterName, reporterOptions, projectRoot, slow) } static loadReporter (reporterName, projectRoot) { diff --git a/packages/server/lib/util/args.js b/packages/server/lib/util/args.js index 1dd9d19ee3..6a227dc686 100644 --- a/packages/server/lib/util/args.js +++ b/packages/server/lib/util/args.js @@ -13,7 +13,7 @@ const nestedObjectsInCurlyBracesRe = /\{(.+?)\}/g const nestedArraysInSquareBracketsRe = /\[(.+?)\]/g const everythingAfterFirstEqualRe = /=(.*)/ -const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject smokeTest spec tag updating version testingType'.split(' ') +const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject slow smokeTest spec tag updating version testingType'.split(' ') // returns true if the given string has double quote character " // only at the last position. const hasStrayEndQuote = (s) => { diff --git a/packages/server/test/support/helpers/e2e.ts b/packages/server/test/support/helpers/e2e.ts index 5f778be5af..bfe83d70b7 100644 --- a/packages/server/test/support/helpers/e2e.ts +++ b/packages/server/test/support/helpers/e2e.ts @@ -605,6 +605,10 @@ const e2e = { args.push(`--reporter-options=${options.reporterOptions}`) } + if (options.slow) { + args.push(`--slow=${options.slow}`) + } + if (options.browser) { args.push(`--browser=${options.browser}`) } diff --git a/packages/server/test/unit/config_spec.js b/packages/server/test/unit/config_spec.js index 0d35983df6..ccce7b931c 100644 --- a/packages/server/test/unit/config_spec.js +++ b/packages/server/test/unit/config_spec.js @@ -1460,6 +1460,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, + slow: { value: 5000, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, diff --git a/packages/server/test/unit/reporter_spec.js b/packages/server/test/unit/reporter_spec.js index c84db90e43..cde8b266d5 100644 --- a/packages/server/test/unit/reporter_spec.js +++ b/packages/server/test/unit/reporter_spec.js @@ -94,6 +94,18 @@ describe('lib/reporter', () => { expect(junitFn).to.be.calledWith(reporter.runner) }) + + it('passes the slow option through to mocha', function () { + const reporter = new Reporter('spec', {}, undefined, 2000) + + reporter.setRunnables(this.root) + + Object.values(reporter.runnables).forEach(function (v) { + expect(v._slow).to.eq(2000) + }) + + expect(reporter.mocha.suite._slow).to.eq(2000) + }) }) context('createSuite', () => { @@ -111,7 +123,6 @@ describe('lib/reporter', () => { it('recursively creates suites for fullTitle', function () { const args = this.reporter.parseArgs('fail', [this.testObj]) - console.log(args) expect(args[0]).to.eq('fail') const title = 'TodoMVC - React When page is initially opened should focus on the todo input field' From 203072fae7f8450ebeb019b6295acea3b5196926 Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 6 Oct 2021 10:15:01 -0700 Subject: [PATCH 02/10] Rename slow to slowTestThreshold; Remove --slow command line option; Change to 10000ms default --- cli/lib/cli.js | 3 --- cli/lib/exec/run.js | 4 ---- cli/lib/util.js | 1 - cli/schema/cypress.schema.json | 6 +++--- cli/types/cypress-npm-api.d.ts | 2 +- cli/types/cypress.d.ts | 6 +++--- packages/server/lib/config_options.ts | 4 ++-- packages/server/lib/project-base.ts | 16 ++++++++-------- packages/server/lib/reporter.js | 16 ++++++++-------- packages/server/lib/util/args.js | 2 +- packages/server/test/support/helpers/e2e.ts | 4 ++-- .../server/test/unit/browsers/browsers_spec.js | 2 +- packages/server/test/unit/config_spec.js | 3 ++- packages/server/test/unit/project_spec.js | 1 + packages/server/test/unit/reporter_spec.js | 2 +- 15 files changed, 33 insertions(+), 39 deletions(-) diff --git a/cli/lib/cli.js b/cli/lib/cli.js index 8d6c3ea882..a0237380c5 100644 --- a/cli/lib/cli.js +++ b/cli/lib/cli.js @@ -125,7 +125,6 @@ const descriptions = { record: 'records the run. sends test results, screenshots and videos to your Cypress Dashboard.', reporter: 'runs a specific mocha reporter. pass a path to use a custom reporter. defaults to "spec"', reporterOptions: 'options for the mocha reporter. defaults to "null"', - slow: '"slow" test threshold in milliseconds. defaults to 5000', spec: 'runs specific spec file(s). defaults to "all"', tag: 'named tag(s) for recorded runs in the Cypress Dashboard', version: 'prints Cypress version', @@ -265,7 +264,6 @@ const addCypressRunCommand = (program) => { .option('-r, --reporter ', text('reporter')) .option('-o, --reporter-options ', text('reporterOptions')) .option('-s, --spec ', text('spec')) - .option('-S, --slow ', text('slow')) .option('-t, --tag ', text('tag')) .option('--dev', text('dev'), coerceFalse) } @@ -453,7 +451,6 @@ module.exports = { .option('-r, --reporter ', text('reporter')) .option('-o, --reporter-options ', text('reporterOptions')) .option('-s, --spec ', text('spec')) - .option('-S, --slow ', text('slow')) .option('-t, --tag ', text('tag')) .option('--dev', text('dev'), coerceFalse) .action((opts) => { diff --git a/cli/lib/exec/run.js b/cli/lib/exec/run.js index 03c59a3d4d..b5fac314e8 100644 --- a/cli/lib/exec/run.js +++ b/cli/lib/exec/run.js @@ -128,10 +128,6 @@ const processRunOptions = (options = {}) => { args.push('--reporter-options', options.reporterOptions) } - if (options.slow) { - args.push('--slow', options.slow) - } - // if we have specific spec(s) push that into the args if (options.spec) { args.push('--spec', options.spec) diff --git a/cli/lib/util.js b/cli/lib/util.js index f85fc242e0..da4729caab 100644 --- a/cli/lib/util.js +++ b/cli/lib/util.js @@ -220,7 +220,6 @@ const parseOpts = (opts) => { 'reporterOptions', 'record', 'runProject', - 'slow', 'spec', 'tag') diff --git a/cli/schema/cypress.schema.json b/cli/schema/cypress.schema.json index c269b6c1bc..8e6bfe75f0 100644 --- a/cli/schema/cypress.schema.json +++ b/cli/schema/cypress.schema.json @@ -44,10 +44,10 @@ "default": null, "description": "The reporter options used. Supported options depend on the reporter. See https://on.cypress.io/reporters#Reporter-Options" }, - "slow": { + "slowTestThreshold": { "type": "number", "default": 5000, - "description": "Slow test timeout passed to mocha. See See https://on.cypress.io/configuration#Global" + "description": "Slow test slowTestThreshold passed to mocha. See https://on.cypress.io/configuration#Global" }, "testFiles": { "type": [ @@ -84,7 +84,7 @@ }, "requestTimeout": { "type": "number", - "default": 5000, + "default": 10000, "description": "Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command" }, "responseTimeout": { diff --git a/cli/types/cypress-npm-api.d.ts b/cli/types/cypress-npm-api.d.ts index 28e273fc5d..97e69c5444 100644 --- a/cli/types/cypress-npm-api.d.ts +++ b/cli/types/cypress-npm-api.d.ts @@ -94,7 +94,7 @@ declare namespace CypressCommandLine { /** * Specify a slow test threshold in milliseconds */ - slow: number + slowTestThreshold: number /** * Specify the specs to run */ diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 1e7d4c1e30..5ec6696b25 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2574,9 +2574,9 @@ declare namespace Cypress { reporterOptions: { [key: string]: any } /** * A slow test threshold in milliseconds - * @default 5000 + * @default 10000 */ - slow: number | null + slowTestThreshold: number | null /** * Whether Cypress will watch and restart tests on test file changes * @default true @@ -2599,7 +2599,7 @@ declare namespace Cypress { pageLoadTimeout: number /** * Time, in milliseconds, to wait for an XHR request to go out in a [cy.wait()](https://on.cypress.io/wait) command - * @default 5000 + * @default 10000 */ requestTimeout: number /** diff --git a/packages/server/lib/config_options.ts b/packages/server/lib/config_options.ts index 62990f0fcd..3f51495288 100644 --- a/packages/server/lib/config_options.ts +++ b/packages/server/lib/config_options.ts @@ -217,8 +217,8 @@ export const options = [ validation: v.isStringOrFalse, isFolder: true, }, { - name: 'slow', - defaultValue: 5000, + name: 'slowTestThreshold', + defaultValue: 10000, validation: v.isNumber, }, { name: 'socketId', diff --git a/packages/server/lib/project-base.ts b/packages/server/lib/project-base.ts index 75c0b5cb90..64bf547c4d 100644 --- a/packages/server/lib/project-base.ts +++ b/packages/server/lib/project-base.ts @@ -38,7 +38,7 @@ import type { LaunchArgs } from './open_project' // and are required when creating a project. type ReceivedCypressOptions = Pick - & Pick // TODO: Figure out how to type this better. + & Pick // TODO: Figure out how to type this better. export interface Cfg extends ReceivedCypressOptions { projectRoot: string @@ -75,7 +75,7 @@ const localCwd = cwd() const debug = Debug('cypress:server:project') const debugScaffold = Debug('cypress:server:scaffold') -type StartWebsocketOptions = Pick +type StartWebsocketOptions = Pick export class ProjectBase extends EE { protected watchers: Watchers @@ -273,7 +273,7 @@ export class ProjectBase extends EE { report: cfg.report, reporter: cfg.reporter, reporterOptions: cfg.reporterOptions, - slow: cfg.slow, + slowTestThreshold: cfg.slowTestThreshold, projectRoot: this.projectRoot, }) @@ -555,8 +555,8 @@ export class ProjectBase extends EE { reporter, projectRoot, reporterOptions, - slow, - }: Pick) { + slowTestThreshold, + }: Pick) { if (!report) { return } @@ -577,10 +577,10 @@ export class ProjectBase extends EE { }) } - return Reporter.create(reporter, reporterOptions, projectRoot, slow) + return Reporter.create(reporter, reporterOptions, projectRoot, slowTestThreshold) } - startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, slow, projectRoot }: StartWebsocketOptions) { + startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, slowTestThreshold, projectRoot }: StartWebsocketOptions) { // if we've passed down reporter // then record these via mocha reporter const reporterInstance = this.initializeReporter({ @@ -588,7 +588,7 @@ export class ProjectBase extends EE { reporter, reporterOptions, projectRoot, - slow, + slowTestThreshold, }) const onBrowserPreRequest = (browserPreRequest) => { diff --git a/packages/server/lib/reporter.js b/packages/server/lib/reporter.js index a511a4b16f..9b58a2d6ed 100644 --- a/packages/server/lib/reporter.js +++ b/packages/server/lib/reporter.js @@ -70,10 +70,10 @@ const getParentTitle = function (runnable, titles) { return titles } -const createSuite = function (obj, parent, slow) { +const createSuite = function (obj, parent, slowTestThreshold) { const suite = new Mocha.Suite(obj.title, {}) - suite.slow(slow) + suite.slow(slowTestThreshold) if (parent) { suite.parent = parent @@ -85,7 +85,7 @@ const createSuite = function (obj, parent, slow) { return suite } -const createRunnable = function (obj, parent, slow) { +const createRunnable = function (obj, parent, slowTestThreshold) { let fn const { body } = obj @@ -108,7 +108,7 @@ const createRunnable = function (obj, parent, slow) { runnable._currentRetry = obj._currentRetry // Because of the way we create the runnables without belonging to an instantiated mocha object, // we have to set the 'slow' speed for each test and suite individually - runnable.slow(slow) + runnable.slow(slowTestThreshold) if (runnable.body == null) { runnable.body = body @@ -255,7 +255,7 @@ const reporters = { } class Reporter { - constructor (reporterName = 'spec', reporterOptions = {}, projectRoot, slow) { + constructor (reporterName = 'spec', reporterOptions = {}, projectRoot, slowTestThreshold) { if (!(this instanceof Reporter)) { return new Reporter(reporterName) } @@ -263,7 +263,7 @@ class Reporter { this.reporterName = reporterName this.projectRoot = projectRoot this.reporterOptions = reporterOptions - this.slow = slow + this.slowTestThreshold = slowTestThreshold this.normalizeTest = this.normalizeTest.bind(this) } @@ -308,7 +308,7 @@ class Reporter { switch (type) { case 'suite': // eslint-disable-next-line no-case-declarations - const suite = createSuite(runnableProps, parent, this.slow) + const suite = createSuite(runnableProps, parent, this.slowTestThreshold) suite.tests = _.map(runnableProps.tests, (testProps) => { return this._createRunnable(testProps, 'test', suite) @@ -320,7 +320,7 @@ class Reporter { return suite case 'test': - return createRunnable(runnableProps, parent, this.slow) + return createRunnable(runnableProps, parent, this.slowTestThreshold) default: throw new Error(`Unknown runnable type: '${type}'`) } diff --git a/packages/server/lib/util/args.js b/packages/server/lib/util/args.js index 6a227dc686..ca43600dc7 100644 --- a/packages/server/lib/util/args.js +++ b/packages/server/lib/util/args.js @@ -13,7 +13,7 @@ const nestedObjectsInCurlyBracesRe = /\{(.+?)\}/g const nestedArraysInSquareBracketsRe = /\[(.+?)\]/g const everythingAfterFirstEqualRe = /=(.*)/ -const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject slow smokeTest spec tag updating version testingType'.split(' ') +const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject slowTestThreshold smokeTest spec tag updating version testingType'.split(' ') // returns true if the given string has double quote character " // only at the last position. const hasStrayEndQuote = (s) => { diff --git a/packages/server/test/support/helpers/e2e.ts b/packages/server/test/support/helpers/e2e.ts index bfe83d70b7..1df16e0736 100644 --- a/packages/server/test/support/helpers/e2e.ts +++ b/packages/server/test/support/helpers/e2e.ts @@ -605,8 +605,8 @@ const e2e = { args.push(`--reporter-options=${options.reporterOptions}`) } - if (options.slow) { - args.push(`--slow=${options.slow}`) + if (options.slowTestThreshold) { + args.push(`--slowTestThreshold=${options.slowTestThreshold}`) } if (options.browser) { diff --git a/packages/server/test/unit/browsers/browsers_spec.js b/packages/server/test/unit/browsers/browsers_spec.js index 96235f1b18..f6fa070ba3 100644 --- a/packages/server/test/unit/browsers/browsers_spec.js +++ b/packages/server/test/unit/browsers/browsers_spec.js @@ -5,7 +5,7 @@ const utils = require(`${root}../lib/browsers/utils`) const snapshot = require('snap-shot-it') const normalizeBrowsers = (message) => { - return message.replace(/(found are: ).*/, '$1chrome, firefox, electron') + return message.replace(/(found on your system are:)(?:\n- .*)*/, '$1\n- chrome\n- firefox\n- electron') } // When we added component testing mode, we added the option for electron to be omitted diff --git a/packages/server/test/unit/config_spec.js b/packages/server/test/unit/config_spec.js index ccce7b931c..298986b906 100644 --- a/packages/server/test/unit/config_spec.js +++ b/packages/server/test/unit/config_spec.js @@ -1460,7 +1460,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, - slow: { value: 5000, from: 'default' }, + slowTestThreshold: { value: 10000, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, @@ -1567,6 +1567,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, + slowTestThreshold: { value: 10000, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, diff --git a/packages/server/test/unit/project_spec.js b/packages/server/test/unit/project_spec.js index d05e445fe4..557e44a5bf 100644 --- a/packages/server/test/unit/project_spec.js +++ b/packages/server/test/unit/project_spec.js @@ -331,6 +331,7 @@ This option will not have an effect in Some-other-name. Tests that rely on web s report: undefined, reporter: 'spec', reporterOptions: null, + slowTestThreshold: 10000, projectRoot: this.todosPath, }) }) diff --git a/packages/server/test/unit/reporter_spec.js b/packages/server/test/unit/reporter_spec.js index cde8b266d5..38539b9cc8 100644 --- a/packages/server/test/unit/reporter_spec.js +++ b/packages/server/test/unit/reporter_spec.js @@ -95,7 +95,7 @@ describe('lib/reporter', () => { expect(junitFn).to.be.calledWith(reporter.runner) }) - it('passes the slow option through to mocha', function () { + it('passes the slowTestThreshold option through to mocha', function () { const reporter = new Reporter('spec', {}, undefined, 2000) reporter.setRunnables(this.root) From be844b21cfb88e29e64a844c6e349b88be5cf60f Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 6 Oct 2021 10:46:35 -0700 Subject: [PATCH 03/10] Typo fix --- packages/server/lib/project-base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/lib/project-base.ts b/packages/server/lib/project-base.ts index 64bf547c4d..05b5d41d23 100644 --- a/packages/server/lib/project-base.ts +++ b/packages/server/lib/project-base.ts @@ -556,7 +556,7 @@ export class ProjectBase extends EE { projectRoot, reporterOptions, slowTestThreshold, - }: Pick) { + }: Pick) { if (!report) { return } From 1496833756d3349b1c109dc09a7bd8281077322f Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 6 Oct 2021 13:51:17 -0700 Subject: [PATCH 04/10] Throw error on this.slow() informing users about slowTestThreshold inside tests, hooks and suites. --- packages/driver/src/cypress/error_messages.ts | 5 +++ packages/driver/src/cypress/mocha.ts | 36 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/packages/driver/src/cypress/error_messages.ts b/packages/driver/src/cypress/error_messages.ts index d4b06241c9..7f3a9155ac 100644 --- a/packages/driver/src/cypress/error_messages.ts +++ b/packages/driver/src/cypress/error_messages.ts @@ -892,6 +892,11 @@ export default { https://on.cypress.io/test-retries `, + manually_set_slow: stripIndent`\ + Mocha \`this.slow()\` syntax is not supported. + + The slow threshold can only be configured globally by \`slowTestThreshold\`. See https://on.cypress.io/configuration#Global + `, hook_registered_late: stripIndent`\ Cypress detected you registered a(n) \`{{hookTitle}}\` hook while a test was running (possibly a hook nested inside another hook). All hooks must be registered before a test begins executing. diff --git a/packages/driver/src/cypress/mocha.ts b/packages/driver/src/cypress/mocha.ts index 8b46babf1d..0df07d8d4b 100644 --- a/packages/driver/src/cypress/mocha.ts +++ b/packages/driver/src/cypress/mocha.ts @@ -27,6 +27,8 @@ const suiteAddTest = Suite.prototype.addTest const suiteAddSuite = Suite.prototype.addSuite const suiteRetries = Suite.prototype.retries const hookRetries = Hook.prototype.retries +const suiteSlow = Suite.prototype.slow +const hookSlow = Suite.prototype.slow const suiteBeforeAll = Suite.prototype.beforeAll const suiteBeforeEach = Suite.prototype.beforeEach const suiteAfterAll = Suite.prototype.afterAll @@ -200,6 +202,14 @@ const restoreSuiteRetries = () => { Suite.prototype.retries = suiteRetries } +const restoreSuiteSlow = () => { + Suite.prototype.slow = suiteSlow +} + +const restoreHookSlow = () => { + Suite.prototype.slow = hookSlow +} + const restoreTestClone = () => { Test.prototype.clone = testClone } @@ -264,6 +274,24 @@ const patchHookRetries = () => { } } +const patchSuiteSlow = () => { + Suite.prototype.slow = function (...args) { + // Mocha calls this.slow() internally to set the default value of 75ms + // Any other value, we assume it's a user and inform them that this is doesn't actually do anything + if (args[0] !== undefined && args[0] !== 75) { + throw $errUtils.cypressErrByPath('mocha.manually_set_slow') + } + } +} + +const patchHookSlow = () => { + Hook.prototype.slow = function (...args) { + if (args[0] !== undefined && args[0] !== 75) { + throw $errUtils.cypressErrByPath('mocha.manually_set_slow') + } + } +} + // matching the current Runner.prototype.fail except // changing the logic for determing whether this is a valid err const patchRunnerFail = () => { @@ -378,6 +406,10 @@ const patchSuiteAddTest = (specWindow, config) => { return testRetries.apply(this, args) } + test.slow = function () { + throw $errUtils.cypressErrByPath('mocha.manually_set_slow') + } + return ret } } @@ -468,6 +500,8 @@ const restore = () => { restoreRunnableResetTimeout() restoreSuiteRetries() restoreHookRetries() + restoreSuiteSlow() + restoreHookSlow() restoreRunnerRunTests() restoreTestClone() restoreSuiteAddTest() @@ -482,6 +516,8 @@ const override = (specWindow, Cypress, config) => { patchRunnableResetTimeout() patchSuiteRetries() patchHookRetries() + patchSuiteSlow() + patchHookSlow() patchRunnerRunTests() patchTestClone() patchSuiteAddTest(specWindow, config) From 80ea0f345f5c8f711891aaa80cc897d9aea6d0fa Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 6 Oct 2021 14:04:14 -0700 Subject: [PATCH 05/10] Revert "Throw error on this.slow() informing users about slowTestThreshold inside tests, hooks and suites." This reverts commit 1496833756d3349b1c109dc09a7bd8281077322f. --- packages/driver/src/cypress/error_messages.ts | 5 --- packages/driver/src/cypress/mocha.ts | 36 ------------------- 2 files changed, 41 deletions(-) diff --git a/packages/driver/src/cypress/error_messages.ts b/packages/driver/src/cypress/error_messages.ts index 7f3a9155ac..d4b06241c9 100644 --- a/packages/driver/src/cypress/error_messages.ts +++ b/packages/driver/src/cypress/error_messages.ts @@ -892,11 +892,6 @@ export default { https://on.cypress.io/test-retries `, - manually_set_slow: stripIndent`\ - Mocha \`this.slow()\` syntax is not supported. - - The slow threshold can only be configured globally by \`slowTestThreshold\`. See https://on.cypress.io/configuration#Global - `, hook_registered_late: stripIndent`\ Cypress detected you registered a(n) \`{{hookTitle}}\` hook while a test was running (possibly a hook nested inside another hook). All hooks must be registered before a test begins executing. diff --git a/packages/driver/src/cypress/mocha.ts b/packages/driver/src/cypress/mocha.ts index 0df07d8d4b..8b46babf1d 100644 --- a/packages/driver/src/cypress/mocha.ts +++ b/packages/driver/src/cypress/mocha.ts @@ -27,8 +27,6 @@ const suiteAddTest = Suite.prototype.addTest const suiteAddSuite = Suite.prototype.addSuite const suiteRetries = Suite.prototype.retries const hookRetries = Hook.prototype.retries -const suiteSlow = Suite.prototype.slow -const hookSlow = Suite.prototype.slow const suiteBeforeAll = Suite.prototype.beforeAll const suiteBeforeEach = Suite.prototype.beforeEach const suiteAfterAll = Suite.prototype.afterAll @@ -202,14 +200,6 @@ const restoreSuiteRetries = () => { Suite.prototype.retries = suiteRetries } -const restoreSuiteSlow = () => { - Suite.prototype.slow = suiteSlow -} - -const restoreHookSlow = () => { - Suite.prototype.slow = hookSlow -} - const restoreTestClone = () => { Test.prototype.clone = testClone } @@ -274,24 +264,6 @@ const patchHookRetries = () => { } } -const patchSuiteSlow = () => { - Suite.prototype.slow = function (...args) { - // Mocha calls this.slow() internally to set the default value of 75ms - // Any other value, we assume it's a user and inform them that this is doesn't actually do anything - if (args[0] !== undefined && args[0] !== 75) { - throw $errUtils.cypressErrByPath('mocha.manually_set_slow') - } - } -} - -const patchHookSlow = () => { - Hook.prototype.slow = function (...args) { - if (args[0] !== undefined && args[0] !== 75) { - throw $errUtils.cypressErrByPath('mocha.manually_set_slow') - } - } -} - // matching the current Runner.prototype.fail except // changing the logic for determing whether this is a valid err const patchRunnerFail = () => { @@ -406,10 +378,6 @@ const patchSuiteAddTest = (specWindow, config) => { return testRetries.apply(this, args) } - test.slow = function () { - throw $errUtils.cypressErrByPath('mocha.manually_set_slow') - } - return ret } } @@ -500,8 +468,6 @@ const restore = () => { restoreRunnableResetTimeout() restoreSuiteRetries() restoreHookRetries() - restoreSuiteSlow() - restoreHookSlow() restoreRunnerRunTests() restoreTestClone() restoreSuiteAddTest() @@ -516,8 +482,6 @@ const override = (specWindow, Cypress, config) => { patchRunnableResetTimeout() patchSuiteRetries() patchHookRetries() - patchSuiteSlow() - patchHookSlow() patchRunnerRunTests() patchTestClone() patchSuiteAddTest(specWindow, config) From aacfc28639e329f6fae075cf602cd8322c1aa6eb Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Thu, 7 Oct 2021 09:20:54 -0700 Subject: [PATCH 06/10] Review feedback, standardizing all docs about slowTestThreshold to use same verbage --- cli/schema/cypress.schema.json | 6 +++--- cli/types/cypress-npm-api.d.ts | 2 +- cli/types/cypress.d.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/schema/cypress.schema.json b/cli/schema/cypress.schema.json index 8e6bfe75f0..0701c75d5c 100644 --- a/cli/schema/cypress.schema.json +++ b/cli/schema/cypress.schema.json @@ -46,8 +46,8 @@ }, "slowTestThreshold": { "type": "number", - "default": 5000, - "description": "Slow test slowTestThreshold passed to mocha. See https://on.cypress.io/configuration#Global" + "default": 10000, + "description": "Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in red if over the threshold and in yellow if over half the threshold. See https://on.cypress.io/configuration#Global" }, "testFiles": { "type": [ @@ -84,7 +84,7 @@ }, "requestTimeout": { "type": "number", - "default": 10000, + "default": 5000, "description": "Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command" }, "responseTimeout": { diff --git a/cli/types/cypress-npm-api.d.ts b/cli/types/cypress-npm-api.d.ts index 97e69c5444..774ae53ee6 100644 --- a/cli/types/cypress-npm-api.d.ts +++ b/cli/types/cypress-npm-api.d.ts @@ -92,7 +92,7 @@ declare namespace CypressCommandLine { */ reporterOptions: any /** - * Specify a slow test threshold in milliseconds + * Specify a slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in red if over the threshold and in yellow if over half the threshold. */ slowTestThreshold: number /** diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 5ec6696b25..30033886dc 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2573,7 +2573,7 @@ declare namespace Cypress { */ reporterOptions: { [key: string]: any } /** - * A slow test threshold in milliseconds + * Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in red if over the threshold and in yellow if over half the threshold. * @default 10000 */ slowTestThreshold: number | null From 53c2328da876b85f72f62fb68c59fc7c2a467a23 Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Tue, 12 Oct 2021 13:18:19 -0700 Subject: [PATCH 07/10] Rework how slowTestThreshold / _slow are passed around --- cli/types/cypress.d.ts | 2 +- packages/driver/src/cypress/mocha.ts | 2 + packages/driver/src/cypress/runner.ts | 2 +- packages/server/lib/project-base.ts | 13 +++--- packages/server/lib/reporter.js | 50 +++++++++++++++------ packages/server/lib/util/args.js | 2 +- packages/server/test/support/helpers/e2e.ts | 4 -- packages/server/test/unit/reporter_spec.js | 12 ----- 8 files changed, 46 insertions(+), 41 deletions(-) diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 30033886dc..07018a03e7 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2599,7 +2599,7 @@ declare namespace Cypress { pageLoadTimeout: number /** * Time, in milliseconds, to wait for an XHR request to go out in a [cy.wait()](https://on.cypress.io/wait) command - * @default 10000 + * @default 5000 */ requestTimeout: number /** diff --git a/packages/driver/src/cypress/mocha.ts b/packages/driver/src/cypress/mocha.ts index 8b46babf1d..9450c2f1a8 100644 --- a/packages/driver/src/cypress/mocha.ts +++ b/packages/driver/src/cypress/mocha.ts @@ -500,6 +500,8 @@ const create = (specWindow, Cypress, config) => { const _mocha = createMocha(specWindow) + _mocha.slow(config('slowTestThreshold')) + const _runner = getRunner(_mocha) _mocha.suite.file = Cypress.spec.relative diff --git a/packages/driver/src/cypress/runner.ts b/packages/driver/src/cypress/runner.ts index 9fc0ce178b..cf1ef60fa6 100644 --- a/packages/driver/src/cypress/runner.ts +++ b/packages/driver/src/cypress/runner.ts @@ -21,7 +21,7 @@ const TEST_BEFORE_RUN_EVENT = 'runner:test:before:run' const TEST_AFTER_RUN_EVENT = 'runner:test:after:run' const RUNNABLE_LOGS = 'routes agents commands hooks'.split(' ') -const RUNNABLE_PROPS = '_testConfig id order title _titlePath root hookName hookId err state failedFromHookId body speed type duration wallClockStartedAt wallClockDuration timings file originalTitle invocationDetails final currentRetry retries'.split(' ') +const RUNNABLE_PROPS = '_testConfig id order title _titlePath root hookName hookId err state failedFromHookId body speed type duration wallClockStartedAt wallClockDuration timings file originalTitle invocationDetails final currentRetry retries _slow'.split(' ') const debug = debugFn('cypress:driver:runner') const debugErrors = debugFn('cypress:driver:errors') diff --git a/packages/server/lib/project-base.ts b/packages/server/lib/project-base.ts index 05b5d41d23..7ccf66ded5 100644 --- a/packages/server/lib/project-base.ts +++ b/packages/server/lib/project-base.ts @@ -38,7 +38,7 @@ import type { LaunchArgs } from './open_project' // and are required when creating a project. type ReceivedCypressOptions = Pick - & Pick // TODO: Figure out how to type this better. + & Pick // TODO: Figure out how to type this better. export interface Cfg extends ReceivedCypressOptions { projectRoot: string @@ -75,7 +75,7 @@ const localCwd = cwd() const debug = Debug('cypress:server:project') const debugScaffold = Debug('cypress:server:scaffold') -type StartWebsocketOptions = Pick +type StartWebsocketOptions = Pick export class ProjectBase extends EE { protected watchers: Watchers @@ -273,7 +273,6 @@ export class ProjectBase extends EE { report: cfg.report, reporter: cfg.reporter, reporterOptions: cfg.reporterOptions, - slowTestThreshold: cfg.slowTestThreshold, projectRoot: this.projectRoot, }) @@ -555,8 +554,7 @@ export class ProjectBase extends EE { reporter, projectRoot, reporterOptions, - slowTestThreshold, - }: Pick) { + }: Pick) { if (!report) { return } @@ -577,10 +575,10 @@ export class ProjectBase extends EE { }) } - return Reporter.create(reporter, reporterOptions, projectRoot, slowTestThreshold) + return Reporter.create(reporter, reporterOptions, projectRoot) } - startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, slowTestThreshold, projectRoot }: StartWebsocketOptions) { + startWebsockets (options: Omit, { socketIoCookie, namespace, screenshotsFolder, report, reporter, reporterOptions, projectRoot }: StartWebsocketOptions) { // if we've passed down reporter // then record these via mocha reporter const reporterInstance = this.initializeReporter({ @@ -588,7 +586,6 @@ export class ProjectBase extends EE { reporter, reporterOptions, projectRoot, - slowTestThreshold, }) const onBrowserPreRequest = (browserPreRequest) => { diff --git a/packages/server/lib/reporter.js b/packages/server/lib/reporter.js index 9b58a2d6ed..5c5b6135c8 100644 --- a/packages/server/lib/reporter.js +++ b/packages/server/lib/reporter.js @@ -8,6 +8,7 @@ const Mocha = require('mocha-7.0.1') const mochaReporters = require('mocha-7.0.1/lib/reporters') const mochaCreateStatsCollector = require('mocha-7.0.1/lib/stats-collector') const mochaColor = mochaReporters.Base.color +const mochaSymbols = mochaReporters.Base.symbols const debug = require('debug')('cypress:server:reporter') const Promise = require('bluebird') @@ -70,11 +71,9 @@ const getParentTitle = function (runnable, titles) { return titles } -const createSuite = function (obj, parent, slowTestThreshold) { +const createSuite = function (obj, parent) { const suite = new Mocha.Suite(obj.title, {}) - suite.slow(slowTestThreshold) - if (parent) { suite.parent = parent } @@ -85,7 +84,7 @@ const createSuite = function (obj, parent, slowTestThreshold) { return suite } -const createRunnable = function (obj, parent, slowTestThreshold) { +const createRunnable = function (obj, parent) { let fn const { body } = obj @@ -106,9 +105,6 @@ const createRunnable = function (obj, parent, slowTestThreshold) { runnable._retries = obj._retries // shouldn't need to set _currentRetry, but we'll do it anyways runnable._currentRetry = obj._currentRetry - // Because of the way we create the runnables without belonging to an instantiated mocha object, - // we have to set the 'slow' speed for each test and suite individually - runnable.slow(slowTestThreshold) if (runnable.body == null) { runnable.body = body @@ -255,7 +251,7 @@ const reporters = { } class Reporter { - constructor (reporterName = 'spec', reporterOptions = {}, projectRoot, slowTestThreshold) { + constructor (reporterName = 'spec', reporterOptions = {}, projectRoot) { if (!(this instanceof Reporter)) { return new Reporter(reporterName) } @@ -263,7 +259,6 @@ class Reporter { this.reporterName = reporterName this.projectRoot = projectRoot this.reporterOptions = reporterOptions - this.slowTestThreshold = slowTestThreshold this.normalizeTest = this.normalizeTest.bind(this) } @@ -279,7 +274,6 @@ class Reporter { const reporter = Reporter.loadReporter(this.reporterName, this.projectRoot) this.mocha = new Mocha({ reporter }) - this.mocha.slow(this.slow) this.mocha.suite = rootRunnable this.runner = new Mocha.Runner(rootRunnable) mochaCreateStatsCollector(this.runner) @@ -300,6 +294,34 @@ class Reporter { reporterOptions: this.reporterOptions, }) + if (this.reporterName === 'spec') { + // Unfortunately the reporter doesn't expose its indentation logic, so we have to replicate it here + let indents = 0 + + this.runner.on('suite', function (suite) { + ++indents + }) + + this.runner.on('suite end', function () { + --indents + }) + + // Override the default reporter to always show test timing even for fast tests + // and display slow ones in yellow rather than red + this.runner._events.pass[2] = function (test) { + const durationColor = test.speed === 'slow' ? 'medium' : 'fast' + const fmt = + Array(indents).join(' ') + + mochaColor('checkmark', ` ${ mochaSymbols.ok}`) + + mochaColor('pass', ' %s') + + mochaColor(durationColor, ' (%dms)') + + // Log: `✓ test title (300ms)` when a test passes + // eslint-disable-next-line no-console + console.log(fmt, test.title, test.duration) + } + } + this.runner.ignoreLeaks = true } @@ -308,7 +330,7 @@ class Reporter { switch (type) { case 'suite': // eslint-disable-next-line no-case-declarations - const suite = createSuite(runnableProps, parent, this.slowTestThreshold) + const suite = createSuite(runnableProps, parent) suite.tests = _.map(runnableProps.tests, (testProps) => { return this._createRunnable(testProps, 'test', suite) @@ -320,7 +342,7 @@ class Reporter { return suite case 'test': - return createRunnable(runnableProps, parent, this.slowTestThreshold) + return createRunnable(runnableProps, parent) default: throw new Error(`Unknown runnable type: '${type}'`) } @@ -479,8 +501,8 @@ class Reporter { }) } - static create (reporterName, reporterOptions, projectRoot, slow) { - return new Reporter(reporterName, reporterOptions, projectRoot, slow) + static create (reporterName, reporterOptions, projectRoot) { + return new Reporter(reporterName, reporterOptions, projectRoot) } static loadReporter (reporterName, projectRoot) { diff --git a/packages/server/lib/util/args.js b/packages/server/lib/util/args.js index ca43600dc7..1dd9d19ee3 100644 --- a/packages/server/lib/util/args.js +++ b/packages/server/lib/util/args.js @@ -13,7 +13,7 @@ const nestedObjectsInCurlyBracesRe = /\{(.+?)\}/g const nestedArraysInSquareBracketsRe = /\[(.+?)\]/g const everythingAfterFirstEqualRe = /=(.*)/ -const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject slowTestThreshold smokeTest spec tag updating version testingType'.split(' ') +const allowList = 'appPath apiKey browser ci ciBuildId clearLogs config configFile cwd env execPath exit exitWithCode group headed inspectBrk key logs mode outputPath parallel ping port project proxySource quiet record reporter reporterOptions returnPkg runMode runProject smokeTest spec tag updating version testingType'.split(' ') // returns true if the given string has double quote character " // only at the last position. const hasStrayEndQuote = (s) => { diff --git a/packages/server/test/support/helpers/e2e.ts b/packages/server/test/support/helpers/e2e.ts index 1df16e0736..5f778be5af 100644 --- a/packages/server/test/support/helpers/e2e.ts +++ b/packages/server/test/support/helpers/e2e.ts @@ -605,10 +605,6 @@ const e2e = { args.push(`--reporter-options=${options.reporterOptions}`) } - if (options.slowTestThreshold) { - args.push(`--slowTestThreshold=${options.slowTestThreshold}`) - } - if (options.browser) { args.push(`--browser=${options.browser}`) } diff --git a/packages/server/test/unit/reporter_spec.js b/packages/server/test/unit/reporter_spec.js index 38539b9cc8..5af7e89b04 100644 --- a/packages/server/test/unit/reporter_spec.js +++ b/packages/server/test/unit/reporter_spec.js @@ -94,18 +94,6 @@ describe('lib/reporter', () => { expect(junitFn).to.be.calledWith(reporter.runner) }) - - it('passes the slowTestThreshold option through to mocha', function () { - const reporter = new Reporter('spec', {}, undefined, 2000) - - reporter.setRunnables(this.root) - - Object.values(reporter.runnables).forEach(function (v) { - expect(v._slow).to.eq(2000) - }) - - expect(reporter.mocha.suite._slow).to.eq(2000) - }) }) context('createSuite', () => { From c504a1143935bf6e162f55cbdc5bd0ee2096a7d7 Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 13 Oct 2021 12:13:18 -0700 Subject: [PATCH 08/10] Update default slowTestThreshold to vary for testingTypes, add system test --- cli/schema/cypress.schema.json | 4 +-- cli/types/cypress-npm-api.d.ts | 2 +- cli/types/cypress.d.ts | 4 +-- packages/driver/src/cypress/mocha.ts | 4 ++- packages/server/lib/config_options.ts | 2 +- packages/server/test/e2e/0_reporters_spec.js | 32 ++++++++++++++++++++ packages/server/test/unit/config_spec.js | 4 +-- packages/server/test/unit/project_spec.js | 1 - 8 files changed, 43 insertions(+), 10 deletions(-) diff --git a/cli/schema/cypress.schema.json b/cli/schema/cypress.schema.json index 0701c75d5c..618c08bb0f 100644 --- a/cli/schema/cypress.schema.json +++ b/cli/schema/cypress.schema.json @@ -46,8 +46,8 @@ }, "slowTestThreshold": { "type": "number", - "default": 10000, - "description": "Slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in red if over the threshold and in yellow if over half the threshold. See https://on.cypress.io/configuration#Global" + "default": null, + "description": "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. See https://on.cypress.io/configuration#Global" }, "testFiles": { "type": [ diff --git a/cli/types/cypress-npm-api.d.ts b/cli/types/cypress-npm-api.d.ts index 774ae53ee6..9356702ccf 100644 --- a/cli/types/cypress-npm-api.d.ts +++ b/cli/types/cypress-npm-api.d.ts @@ -92,7 +92,7 @@ declare namespace CypressCommandLine { */ reporterOptions: any /** - * Specify a slow test threshold in milliseconds. Only affects the visual output of some reporters. For example, the spec reporter will display the test time in red if over the threshold and in yellow if over half the threshold. + * 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 /** diff --git a/cli/types/cypress.d.ts b/cli/types/cypress.d.ts index 07018a03e7..f320e8edd7 100644 --- a/cli/types/cypress.d.ts +++ b/cli/types/cypress.d.ts @@ -2573,8 +2573,8 @@ declare namespace Cypress { */ 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 red if over the threshold and in yellow if over half the threshold. - * @default 10000 + * 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 /** diff --git a/packages/driver/src/cypress/mocha.ts b/packages/driver/src/cypress/mocha.ts index 9450c2f1a8..4913435133 100644 --- a/packages/driver/src/cypress/mocha.ts +++ b/packages/driver/src/cypress/mocha.ts @@ -500,7 +500,9 @@ const create = (specWindow, Cypress, config) => { const _mocha = createMocha(specWindow) - _mocha.slow(config('slowTestThreshold')) + const slowTestThreshold = config('slowTestThreshold') ?? (Cypress.testingType === 'e2e' ? 10000 : 250) + + _mocha.slow(slowTestThreshold) const _runner = getRunner(_mocha) diff --git a/packages/server/lib/config_options.ts b/packages/server/lib/config_options.ts index 3f51495288..74c6425739 100644 --- a/packages/server/lib/config_options.ts +++ b/packages/server/lib/config_options.ts @@ -218,7 +218,7 @@ export const options = [ isFolder: true, }, { name: 'slowTestThreshold', - defaultValue: 10000, + defaultValue: null, validation: v.isNumber, }, { name: 'socketId', diff --git a/packages/server/test/e2e/0_reporters_spec.js b/packages/server/test/e2e/0_reporters_spec.js index d4f08c1554..ca019fec3d 100644 --- a/packages/server/test/e2e/0_reporters_spec.js +++ b/packages/server/test/e2e/0_reporters_spec.js @@ -145,4 +145,36 @@ describe('e2e reporters', () => { reporterOptions: 'topLevelSuite=top suite,flowId=12345,useStdError=\'true\',useStdError=\'true\',recordHookFailures=\'true\',actualVsExpected=\'true\'', }) }) + + it('shows slow tests in orange', function () { + return e2e.exec(this, { + spec: 'simple_passing_spec.js', + snapshot: false, + config: { + slowTestThreshold: 1, + }, + processEnv: { + MOCHA_COLORS: 1, + }, + }).then((result) => { + // With a very low slowTestThreshold, the timing should be in orange, since the test is considered 'slow'. + expect(result.stdout.match(/passes(.*)/)[1]).to.contain('\u001b[33m') + }) + }) + + it('shows fast tests in default color', function () { + return e2e.exec(this, { + spec: 'simple_passing_spec.js', + snapshot: false, + config: { + slowTestThreshold: 100000, + }, + processEnv: { + MOCHA_COLORS: 1, + }, + }).then((result) => { + // This is a fast test, so we expect not to see the test timing in orange + expect(result.stdout.match(/passes(.*)/)[1]).not.to.contain('\u001b[33m') + }) + }) }) diff --git a/packages/server/test/unit/config_spec.js b/packages/server/test/unit/config_spec.js index 298986b906..ab223d0938 100644 --- a/packages/server/test/unit/config_spec.js +++ b/packages/server/test/unit/config_spec.js @@ -1460,7 +1460,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, - slowTestThreshold: { value: 10000, from: 'default' }, + slowTestThreshold: { value: null, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, @@ -1567,7 +1567,7 @@ describe('lib/config', () => { retries: { value: { runMode: 0, openMode: 0 }, from: 'default' }, screenshotOnRunFailure: { value: true, from: 'default' }, screenshotsFolder: { value: 'cypress/screenshots', from: 'default' }, - slowTestThreshold: { value: 10000, from: 'default' }, + slowTestThreshold: { value: null, from: 'default' }, supportFile: { value: 'cypress/support', from: 'default' }, taskTimeout: { value: 60000, from: 'default' }, testFiles: { value: '**/*.*', from: 'default' }, diff --git a/packages/server/test/unit/project_spec.js b/packages/server/test/unit/project_spec.js index 557e44a5bf..d05e445fe4 100644 --- a/packages/server/test/unit/project_spec.js +++ b/packages/server/test/unit/project_spec.js @@ -331,7 +331,6 @@ This option will not have an effect in Some-other-name. Tests that rely on web s report: undefined, reporter: 'spec', reporterOptions: null, - slowTestThreshold: 10000, projectRoot: this.todosPath, }) }) From a2784af99c36ebff82ae4d98fcc040692704e75c Mon Sep 17 00:00:00 2001 From: BlueWinds Date: Wed, 13 Oct 2021 12:59:42 -0700 Subject: [PATCH 09/10] Update additional snapshots --- .../__snapshots__/retries.mochaEvents.spec.js | 983 ++-- .../__snapshots__/runner.mochaEvents.spec.js | 366 +- .../__snapshots__/studio.mochaEvents.spec.js | 4208 +++++++++-------- 3 files changed, 2991 insertions(+), 2566 deletions(-) diff --git a/packages/runner/__snapshots__/retries.mochaEvents.spec.js b/packages/runner/__snapshots__/retries.mochaEvents.spec.js index 1aa18e0448..61566d5fc4 100644 --- a/packages/runner/__snapshots__/retries.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/retries.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -28,7 +29,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -43,7 +45,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -59,7 +62,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -92,7 +96,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 }, { "message": "[error message]", @@ -133,7 +138,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -147,7 +153,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -171,7 +178,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -195,7 +203,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -208,7 +217,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -233,7 +243,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -245,7 +256,8 @@ exports['src/cypress/runner retries mochaEvents simple retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -274,7 +286,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -287,7 +300,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -303,7 +317,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -319,7 +334,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -336,7 +352,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -380,7 +397,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -396,7 +414,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -413,7 +432,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -467,7 +487,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 }, { "message": "[error message]", @@ -490,7 +511,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -507,7 +529,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -562,7 +585,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -579,7 +603,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -593,7 +618,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -610,7 +636,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -627,7 +654,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -644,7 +672,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -660,7 +689,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -677,7 +707,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -722,7 +753,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -767,7 +799,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -780,7 +813,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -826,7 +860,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -838,7 +873,8 @@ exports['src/cypress/runner retries mochaEvents test retry with hooks #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -867,7 +903,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -880,7 +917,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -896,7 +934,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -912,7 +951,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -929,7 +969,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -973,7 +1014,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -989,7 +1031,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1006,7 +1049,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1060,7 +1104,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 }, { "message": "[error message]", @@ -1083,7 +1128,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1100,7 +1146,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1155,7 +1202,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1172,7 +1220,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1186,7 +1235,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1203,7 +1253,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1220,7 +1271,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1237,7 +1289,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1253,7 +1306,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1270,7 +1324,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1315,7 +1370,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1360,7 +1416,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1373,7 +1430,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1419,7 +1477,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1431,7 +1490,8 @@ exports['src/cypress/runner retries mochaEvents test retry with [only] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1460,7 +1520,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1473,7 +1534,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1489,7 +1551,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1505,7 +1568,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1522,7 +1586,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1571,7 +1636,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1587,7 +1653,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1604,7 +1671,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1620,7 +1688,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1637,7 +1706,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1653,7 +1723,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1669,7 +1740,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1730,7 +1802,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 }, { "message": "[error message]", @@ -1753,7 +1826,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1770,7 +1844,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1832,7 +1907,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1849,7 +1925,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1863,7 +1940,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -1880,7 +1958,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1897,7 +1976,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1914,7 +1994,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1930,7 +2011,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1947,7 +2029,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1964,7 +2047,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1981,7 +2065,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1997,7 +2082,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2014,7 +2100,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2069,7 +2156,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -2124,7 +2212,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -2137,7 +2226,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2193,7 +2283,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -2205,7 +2296,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [beforeEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2234,7 +2326,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2247,7 +2340,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2263,7 +2357,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2279,7 +2374,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2296,7 +2392,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2350,7 +2447,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2366,7 +2464,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2383,7 +2482,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2399,7 +2499,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2416,7 +2517,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2432,7 +2534,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2449,7 +2552,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2465,7 +2569,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2531,7 +2636,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -2562,7 +2668,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2629,7 +2736,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2646,7 +2754,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2660,7 +2769,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2677,7 +2787,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2694,7 +2805,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2711,7 +2823,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2728,7 +2841,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2745,7 +2859,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2769,7 +2884,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2786,7 +2902,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2834,7 +2951,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2882,7 +3000,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2931,7 +3050,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -2946,7 +3066,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2963,7 +3084,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2979,7 +3101,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2996,7 +3119,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3013,7 +3137,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3030,7 +3155,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3047,7 +3173,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3064,7 +3191,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3081,7 +3209,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3098,7 +3227,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3148,7 +3278,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3198,7 +3329,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3249,7 +3381,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3264,7 +3397,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3281,7 +3415,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3297,7 +3432,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3314,7 +3450,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3331,7 +3468,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3348,7 +3486,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3365,7 +3504,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3382,7 +3522,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3399,7 +3540,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3416,7 +3558,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3432,7 +3575,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3449,7 +3593,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3506,7 +3651,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3563,7 +3709,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3621,7 +3768,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3634,7 +3782,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3647,7 +3796,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3662,7 +3812,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3678,7 +3829,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3694,7 +3846,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3741,7 +3894,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -3772,7 +3926,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3789,7 +3944,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3806,7 +3962,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3854,7 +4011,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3868,7 +4026,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -3892,7 +4051,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3937,7 +4097,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -3968,7 +4129,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -3985,7 +4147,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4002,7 +4165,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4048,7 +4212,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4062,7 +4227,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4086,7 +4252,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4103,7 +4270,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4120,7 +4288,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4137,7 +4306,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4173,7 +4343,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4209,7 +4380,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4246,7 +4418,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4259,7 +4432,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4272,7 +4446,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4287,7 +4462,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4303,7 +4479,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4320,7 +4497,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4337,7 +4515,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "file": "relative/path/to/spec.js", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4370,7 +4549,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4403,7 +4583,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4416,7 +4597,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4450,7 +4632,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -4462,7 +4645,8 @@ exports['src/cypress/runner retries mochaEvents can retry from [afterEach] #1'] "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4491,7 +4675,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4504,7 +4689,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4520,7 +4706,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4536,7 +4723,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4562,7 +4750,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "originalTitle": "\"before all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -4585,7 +4774,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4602,7 +4792,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4615,7 +4806,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4660,7 +4852,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -4706,7 +4899,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -4718,7 +4912,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [before] #1'] = "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4747,7 +4942,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4760,7 +4956,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4776,7 +4973,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4792,7 +4990,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4809,7 +5008,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4870,7 +5070,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -4886,7 +5087,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4903,7 +5105,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4919,7 +5122,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4936,7 +5140,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4952,7 +5157,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4969,7 +5175,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -4985,7 +5192,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5002,7 +5210,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5018,7 +5227,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5044,7 +5254,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "originalTitle": "\"after all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -5124,7 +5335,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -5137,7 +5349,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5211,7 +5424,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 1 + "retries": 1, + "_slow": 250 } ], [ @@ -5223,7 +5437,8 @@ exports['src/cypress/runner retries mochaEvents cant retry from [after] #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5252,7 +5467,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5265,7 +5481,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5281,7 +5498,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5297,7 +5515,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5314,7 +5533,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5358,7 +5578,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5374,7 +5595,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5391,7 +5613,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5407,7 +5630,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5424,7 +5648,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5471,7 +5696,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5518,7 +5744,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5566,7 +5793,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5581,7 +5809,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5598,7 +5827,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5614,7 +5844,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5631,7 +5862,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5678,7 +5910,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -5702,7 +5935,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5719,7 +5953,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5767,7 +6002,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5784,7 +6020,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5798,7 +6035,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5815,7 +6053,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5860,7 +6099,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -5884,7 +6124,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5901,7 +6142,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5947,7 +6189,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5964,7 +6207,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -5978,7 +6222,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -5995,7 +6240,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6012,7 +6258,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6029,7 +6276,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6067,7 +6315,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6105,7 +6354,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6144,7 +6394,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6159,7 +6410,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6176,7 +6428,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6192,7 +6445,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6209,7 +6463,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6226,7 +6481,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6243,7 +6499,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6259,7 +6516,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6276,7 +6534,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6323,7 +6582,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6370,7 +6630,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6383,7 +6644,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6431,7 +6693,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6443,7 +6706,8 @@ exports['src/cypress/runner retries mochaEvents three tests with retry #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6494,133 +6758,6 @@ exports['src/cypress/runner retries mochaEvents screenshots retry screenshot in "blackout": [] } -exports['serialize state - retries'] = { - "currentId": "r6", - "tests": { - "r3": { - "id": "r3", - "order": 1, - "title": "test 1", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "before all": [ - { - "hookId": "h1", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - }, - "after each": [ - { - "hookId": "h4", - "fnDuration": 1, - "afterFnDuration": 1 - } - ], - "after all": [ - { - "hookId": "h3", - "fnDuration": 1, - "afterFnDuration": 1 - } - ] - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 1, - "hooks": [], - "prevAttempts": [] - }, - "r5": { - "id": "r5", - "title": "test 1", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - } - }, - "file": null, - "final": true, - "currentRetry": 1, - "retries": 1, - "prevAttempts": [ - { - "id": "r5", - "order": 2, - "title": "test 1", - "err": "{Object 9}", - "state": "failed", - "body": "[body]", - "type": "test", - "duration": 1, - "wallClockStartedAt": "1970-01-01T00:00:00.000Z", - "wallClockDuration": 1, - "timings": { - "lifecycle": 1, - "test": { - "fnDuration": 1, - "afterFnDuration": 1 - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": false, - "currentRetry": 0, - "retries": 1, - "hooks": [] - } - ] - } - }, - "startTime": "1970-01-01T00:00:00.000Z", - "emissions": { - "started": { - "r1": true, - "r2": true, - "r3": true, - "r4": true, - "r5": true, - "r6": true - }, - "ended": { - "r3": true, - "r2": true, - "r5": true - } - }, - "passed": 2, - "failed": 0, - "pending": 0, - "numLogs": 0 -} - exports['src/cypress/runner retries mochaEvents cleanses errors before emitting does not try to serialize error with err.actual as DOM node #1'] = [ [ "mocha", @@ -6638,7 +6775,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6653,7 +6791,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6669,7 +6808,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6702,7 +6842,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -6743,7 +6884,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "invocationDetails": "{Object 8}", "final": false, "currentRetry": 0, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6757,7 +6899,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "wallClockStartedAt": "match.date", "file": null, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6788,7 +6931,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -6827,7 +6971,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": false, "currentRetry": 1, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6841,7 +6986,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "wallClockStartedAt": "match.date", "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6871,7 +7017,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting }, "file": null, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 }, { "message": "[error message]", @@ -6909,7 +7056,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6941,7 +7089,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "file": null, "final": true, "currentRetry": 2, - "retries": 2 + "retries": 2, + "_slow": 250 } ], [ @@ -6953,7 +7102,8 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -6964,3 +7114,28 @@ exports['src/cypress/runner retries mochaEvents cleanses errors before emitting } ] ] + +exports['serialize state - retries'] = { + "currentId": "r6", + "tests": "{Object 2}", + "startTime": "1970-01-01T00:00:00.000Z", + "emissions": { + "started": { + "r1": true, + "r2": true, + "r3": true, + "r4": true, + "r5": true, + "r6": true + }, + "ended": { + "r3": true, + "r2": true, + "r5": true + } + }, + "passed": 2, + "failed": 0, + "pending": 0, + "numLogs": 0 +} diff --git a/packages/runner/__snapshots__/runner.mochaEvents.spec.js b/packages/runner/__snapshots__/runner.mochaEvents.spec.js index 610766f404..419c051d85 100644 --- a/packages/runner/__snapshots__/runner.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/runner.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -28,7 +29,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -44,7 +46,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -60,7 +63,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -86,7 +90,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"before all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -106,7 +111,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -144,7 +150,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -183,7 +190,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -195,7 +203,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -224,7 +233,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -237,7 +247,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -252,7 +263,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -268,7 +280,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -284,7 +297,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -310,7 +324,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"before each\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -355,7 +370,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -368,7 +384,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -407,7 +424,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -419,7 +437,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -448,7 +467,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -461,7 +481,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -476,7 +497,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -492,7 +514,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -508,7 +531,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -534,7 +558,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"after each\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -583,7 +608,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -596,7 +622,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -639,7 +666,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -651,7 +679,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -680,7 +709,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -693,7 +723,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -708,7 +739,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -724,7 +756,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -750,7 +783,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -776,7 +810,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -803,7 +838,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -818,7 +854,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -834,7 +871,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -850,7 +888,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -876,7 +915,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "originalTitle": "\"after all\" hook", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 }, { "message": "[error message]", @@ -925,7 +965,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -938,7 +979,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -981,7 +1023,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -993,7 +1036,8 @@ exports['src/cypress/runner tests finish with correct state hook failures fail i "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1022,7 +1066,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1035,7 +1080,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1051,7 +1097,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1067,7 +1114,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1084,7 +1132,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1135,7 +1184,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1151,7 +1201,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1168,7 +1219,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1228,7 +1280,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 }, { "message": "[error message]", @@ -1251,7 +1304,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1268,7 +1322,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1284,7 +1339,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1301,7 +1357,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1362,7 +1419,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1375,7 +1433,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1437,7 +1496,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1449,7 +1509,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep fail with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1478,7 +1539,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1491,7 +1553,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1507,7 +1570,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1523,7 +1587,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1540,7 +1605,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1591,7 +1657,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1607,7 +1674,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1624,7 +1692,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1640,7 +1709,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1657,7 +1727,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1673,7 +1744,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1690,7 +1762,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1744,7 +1817,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1798,7 +1872,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1811,7 +1886,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1866,7 +1942,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -1878,7 +1955,8 @@ exports['src/cypress/runner tests finish with correct state mocha grep pass with "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1962,7 +2040,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1975,7 +2054,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -1990,7 +2070,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2006,7 +2087,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2032,7 +2114,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2058,7 +2141,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2071,7 +2155,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2098,7 +2183,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2110,7 +2196,8 @@ exports['src/cypress/runner mocha events simple single test #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2139,7 +2226,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2152,7 +2240,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2168,7 +2257,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2184,7 +2274,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2201,7 +2292,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2245,7 +2337,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2261,7 +2354,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2278,7 +2372,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2294,7 +2389,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2311,7 +2407,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2358,7 +2455,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2405,7 +2503,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2453,7 +2552,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2468,7 +2568,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2485,7 +2586,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2501,7 +2603,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2518,7 +2621,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2535,7 +2639,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2552,7 +2657,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2592,7 +2698,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2632,7 +2739,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2673,7 +2781,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2688,7 +2797,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2705,7 +2815,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2721,7 +2832,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2738,7 +2850,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2755,7 +2868,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2772,7 +2886,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2788,7 +2903,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2805,7 +2921,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2852,7 +2969,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2899,7 +3017,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2912,7 +3031,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2960,7 +3080,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2972,7 +3093,8 @@ exports['src/cypress/runner mocha events simple three tests #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ diff --git a/packages/runner/__snapshots__/studio.mochaEvents.spec.js b/packages/runner/__snapshots__/studio.mochaEvents.spec.js index ebb6612843..186e0d16d0 100644 --- a/packages/runner/__snapshots__/studio.mochaEvents.spec.js +++ b/packages/runner/__snapshots__/studio.mochaEvents.spec.js @@ -15,7 +15,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -28,7 +29,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -43,7 +45,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -59,7 +62,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "file": null, "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -85,7 +89,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -111,7 +116,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -124,7 +130,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -151,7 +158,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -163,7 +171,8 @@ exports['studio mocha events only runs a single test by id #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -192,7 +201,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -205,7 +215,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -219,7 +230,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "test", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -234,7 +246,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "wallClockStartedAt": "match.date", "invocationDetails": "{Object 8}", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -259,7 +272,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -284,7 +298,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -297,7 +312,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "type": "suite", "file": null, "invocationDetails": "{Object 8}", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -323,7 +339,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "invocationDetails": "{Object 8}", "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -335,2022 +352,8 @@ exports['studio mocha events creates a new test when adding to a suite #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events hooks runs before hooks and test body but not after hooks when extending test #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r3", - "order": 1, - "title": "test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r3", - "order": 1, - "title": "test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r3", - "order": 1, - "title": "test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events hooks runs before hooks but not after hooks when adding to suite #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r3", - "order": 1, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before all\" hook", - "hookName": "before all", - "hookId": "h1", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r3", - "order": 1, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "hook", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "hook end", - { - "id": "r3", - "title": "\"before each\" hook", - "hookName": "before each", - "hookId": "h2", - "body": "[body]", - "type": "hook", - "duration": "match.number", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r3", - "order": 1, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "before all": [ - { - "hookId": "h1", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "before each": [ - { - "hookId": "h2", - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - ], - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can be extended #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r4", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r4", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r4", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can be extended when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r5", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r5", - "order": 1, - "title": "test 2", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r5", - "order": 1, - "title": "test 2", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only test can extend a suite that contains an only spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r8", - "order": 2, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r8", - "order": 2, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 1", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r8", - "order": 2, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can be added to #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r8", - "order": 4, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r8", - "order": 4, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r8", - "order": 4, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can be added to when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r11", - "order": 6, - "title": "New Test", - "body": "[body]", - "type": "test", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r11", - "order": 6, - "title": "New Test", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r11", - "order": 6, - "title": "New Test", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can extend a test within an only suite #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r7", - "order": 1, - "title": "test 3", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r7", - "order": 1, - "title": "test 3", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r3", - "title": "nested suite 2", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r7", - "order": 1, - "title": "test 3", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "end", - { - "end": "match.date" - } - ] -] - -exports['studio mocha events only suite can extend a test within an only suite when there are multiple in the spec #1'] = [ - [ - "mocha", - "start", - { - "start": "match.date" - } - ], - [ - "mocha", - "suite", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test", - { - "id": "r10", - "order": 1, - "title": "test 5", - "body": "[body]", - "type": "test", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "test:before:run", - { - "id": "r10", - "order": 1, - "title": "test 5", - "body": "[body]", - "type": "test", - "wallClockStartedAt": "match.date", - "file": null, - "invocationDetails": "{Object 8}", - "currentRetry": 0, - "retries": -1 - } - ], - [ - "mocha", - "pass", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "test end", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r4", - "title": "nested suite 3", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "suite end", - { - "id": "r2", - "title": "suite", - "root": false, - "type": "suite", - "file": null, - "invocationDetails": "{Object 8}", - "retries": -1 - } - ], - [ - "mocha", - "test:after:run", - { - "id": "r10", - "order": 1, - "title": "test 5", - "state": "passed", - "body": "[body]", - "type": "test", - "duration": "match.number", - "wallClockStartedAt": "match.date", - "wallClockDuration": "match.number", - "timings": { - "lifecycle": "match.number", - "test": { - "fnDuration": "match.number", - "afterFnDuration": "match.number" - } - }, - "file": null, - "invocationDetails": "{Object 8}", - "final": true, - "currentRetry": 0, - "retries": 0 - } - ], - [ - "mocha", - "suite end", - { - "id": "r1", - "title": "", - "root": true, - "type": "suite", - "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2379,7 +382,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2392,7 +396,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "body": "[body]", "type": "test", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2406,7 +411,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "type": "test", "wallClockStartedAt": "match.date", "currentRetry": 0, - "retries": -1 + "retries": -1, + "_slow": 250 } ], [ @@ -2430,7 +436,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2454,7 +461,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2479,7 +487,8 @@ exports['studio mocha events can add new test to root runnable #1'] = [ }, "final": true, "currentRetry": 0, - "retries": 0 + "retries": 0, + "_slow": 250 } ], [ @@ -2491,7 +500,2126 @@ exports['studio mocha events can add new test to root runnable #1'] = [ "root": true, "type": "suite", "file": "relative/path/to/spec.js", - "retries": -1 + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events hooks runs before hooks and test body but not after hooks when extending test #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r3", + "order": 1, + "title": "test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r3", + "order": 1, + "title": "test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r3", + "order": 1, + "title": "test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events hooks runs before hooks but not after hooks when adding to suite #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r3", + "order": 1, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before all\" hook", + "hookName": "before all", + "hookId": "h1", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r3", + "order": 1, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "hook", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "hook end", + { + "id": "r3", + "title": "\"before each\" hook", + "hookName": "before each", + "hookId": "h2", + "body": "[body]", + "type": "hook", + "duration": "match.number", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r3", + "order": 1, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "before all": [ + { + "hookId": "h1", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "before each": [ + { + "hookId": "h2", + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + ], + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can be extended #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r4", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r4", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r4", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can be extended when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r5", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r5", + "order": 1, + "title": "test 2", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r5", + "order": 1, + "title": "test 2", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only test can extend a suite that contains an only spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r8", + "order": 2, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r8", + "order": 2, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 1", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r8", + "order": 2, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can be added to #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r8", + "order": 4, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r8", + "order": 4, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r8", + "order": 4, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can be added to when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r11", + "order": 6, + "title": "New Test", + "body": "[body]", + "type": "test", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r11", + "order": 6, + "title": "New Test", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r11", + "order": 6, + "title": "New Test", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can extend a test within an only suite #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r7", + "order": 1, + "title": "test 3", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r7", + "order": 1, + "title": "test 3", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r3", + "title": "nested suite 2", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r7", + "order": 1, + "title": "test 3", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "end", + { + "end": "match.date" + } + ] +] + +exports['studio mocha events only suite can extend a test within an only suite when there are multiple in the spec #1'] = [ + [ + "mocha", + "start", + { + "start": "match.date" + } + ], + [ + "mocha", + "suite", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test", + { + "id": "r10", + "order": 1, + "title": "test 5", + "body": "[body]", + "type": "test", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:before:run", + { + "id": "r10", + "order": 1, + "title": "test 5", + "body": "[body]", + "type": "test", + "wallClockStartedAt": "match.date", + "file": null, + "invocationDetails": "{Object 8}", + "currentRetry": 0, + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "pass", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "test end", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r4", + "title": "nested suite 3", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r2", + "title": "suite", + "root": false, + "type": "suite", + "file": null, + "invocationDetails": "{Object 8}", + "retries": -1, + "_slow": 250 + } + ], + [ + "mocha", + "test:after:run", + { + "id": "r10", + "order": 1, + "title": "test 5", + "state": "passed", + "body": "[body]", + "type": "test", + "duration": "match.number", + "wallClockStartedAt": "match.date", + "wallClockDuration": "match.number", + "timings": { + "lifecycle": "match.number", + "test": { + "fnDuration": "match.number", + "afterFnDuration": "match.number" + } + }, + "file": null, + "invocationDetails": "{Object 8}", + "final": true, + "currentRetry": 0, + "retries": 0, + "_slow": 250 + } + ], + [ + "mocha", + "suite end", + { + "id": "r1", + "title": "", + "root": true, + "type": "suite", + "file": "relative/path/to/spec.js", + "retries": -1, + "_slow": 250 } ], [ From 30bd7ae4997cbfd35dfbd25b2bdbcdf2b89da4ea Mon Sep 17 00:00:00 2001 From: Blue F Date: Thu, 14 Oct 2021 09:53:13 -0700 Subject: [PATCH 10/10] Change 'orange' to 'yellow' in all places for consistency Co-authored-by: Chris Breiding --- packages/server/test/e2e/0_reporters_spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/server/test/e2e/0_reporters_spec.js b/packages/server/test/e2e/0_reporters_spec.js index ca019fec3d..951deb5cf0 100644 --- a/packages/server/test/e2e/0_reporters_spec.js +++ b/packages/server/test/e2e/0_reporters_spec.js @@ -146,7 +146,7 @@ describe('e2e reporters', () => { }) }) - it('shows slow tests in orange', function () { + it('shows slow tests in yellow', function () { return e2e.exec(this, { spec: 'simple_passing_spec.js', snapshot: false, @@ -157,7 +157,7 @@ describe('e2e reporters', () => { MOCHA_COLORS: 1, }, }).then((result) => { - // With a very low slowTestThreshold, the timing should be in orange, since the test is considered 'slow'. + // With a very low slowTestThreshold, the timing should be in yellow, since the test is considered 'slow'. expect(result.stdout.match(/passes(.*)/)[1]).to.contain('\u001b[33m') }) }) @@ -173,7 +173,7 @@ describe('e2e reporters', () => { MOCHA_COLORS: 1, }, }).then((result) => { - // This is a fast test, so we expect not to see the test timing in orange + // This is a fast test, so we expect not to see the test timing in yellow expect(result.stdout.match(/passes(.*)/)[1]).not.to.contain('\u001b[33m') }) })