UNPKG

@revoloo/cypress6

Version:

Cypress.io end to end testing tool

1,415 lines (1,364 loc) 119 kB
exports['e2e spec_isolation / failing with retries enabled'] = ` ==================================================================================================== (Run Starting) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Cypress: 1.2.3 │ │ Browser: FooBrowser 88 │ │ Specs: 2 found (simple_failing_hook_spec.js, simple_retrying_spec.js) │ │ Searched: cypress/integration/simple_failing_hook_spec.js, cypress/integration/simple_retryi │ │ ng_spec.js │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: simple_failing_hook_spec.js (1 of 2) simple failing hook spec beforeEach hooks (Attempt 1 of 2) never gets here 1) "before each" hook for "never gets here" pending - is pending afterEach hooks (Attempt 1 of 2) runs this 2) "after each" hook for "runs this" after hooks ✓ runs this 3) "after all" hook for "fails on this" 1 passing 1 pending 3 failing 1) simple failing hook spec beforeEach hooks "before each" hook for "never gets here": Error: fail1 Because this error occurred during a \`before each\` hook we are skipping the remaining tests in the current suite: \`beforeEach hooks\` [stack trace lines] 2) simple failing hook spec afterEach hooks "after each" hook for "runs this": Error: fail2 Because this error occurred during a \`after each\` hook we are skipping the remaining tests in the current suite: \`afterEach hooks\` [stack trace lines] 3) simple failing hook spec after hooks "after all" hook for "fails on this": Error: fail3 Because this error occurred during a \`after all\` hook we are skipping the remaining tests in the current suite: \`after hooks\` Although you have test retries enabled, we do not retry tests when \`before all\` or \`after all\` hooks fail [stack trace lines] (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 6 │ │ Passing: 1 │ │ Failing: 3 │ │ Pending: 1 │ │ Skipped: 1 │ │ Screenshots: 5 │ │ Video: false │ │ Duration: X seconds │ │ Spec Ran: simple_failing_hook_spec.js │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /XXX/XXX/XXX/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook (1280x720) spec -- beforeEach hooks -- never gets here (failed).png - /XXX/XXX/XXX/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook (1280x720) spec -- beforeEach hooks -- never gets here -- before each hook (failed) (attem pt 2).png - /XXX/XXX/XXX/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook (1280x720) spec -- afterEach hooks -- runs this -- after each hook (failed).png - /XXX/XXX/XXX/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook (1280x720) spec -- afterEach hooks -- runs this -- after each hook (failed) (attempt 2).pn g - /XXX/XXX/XXX/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook (1280x720) spec -- after hooks -- fails on this -- after all hook (failed).png ──────────────────────────────────────────────────────────────────────────────────────────────────── Running: simple_retrying_spec.js (2 of 2) simple retrying spec (Attempt 1 of 2) t1 1) t1 ✓ t2 1 passing 1 failing 1) simple retrying spec t1: Error: t1 attempt #1 [stack trace lines] (Results) ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Tests: 2 │ │ Passing: 1 │ │ Failing: 1 │ │ Pending: 0 │ │ Skipped: 0 │ │ Screenshots: 2 │ │ Video: false │ │ Duration: X seconds │ │ Spec Ran: simple_retrying_spec.js │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ (Screenshots) - /XXX/XXX/XXX/cypress/screenshots/simple_retrying_spec.js/simple retrying spec -- (1280x720) t1 (failed).png - /XXX/XXX/XXX/cypress/screenshots/simple_retrying_spec.js/simple retrying spec -- (1280x720) t1 (failed) (attempt 2).png ==================================================================================================== (Run Finished) Spec Tests Passing Failing Pending Skipped ┌────────────────────────────────────────────────────────────────────────────────────────────────┐ │ ✖ simple_failing_hook_spec.js XX:XX 6 1 3 1 1 │ ├────────────────────────────────────────────────────────────────────────────────────────────────┤ │ ✖ simple_retrying_spec.js XX:XX 2 1 1 - - │ └────────────────────────────────────────────────────────────────────────────────────────────────┘ ✖ 2 of 2 failed (100%) XX:XX 8 2 4 1 1 ` exports['e2e spec_isolation fails [electron] 1'] = { "startedTestsAt": "2018-02-01T20:14:19.323Z", "endedTestsAt": "2018-02-01T20:14:19.323Z", "totalDuration": 5555, "totalSuites": 8, "totalTests": 12, "totalFailed": 5, "totalPassed": 5, "totalPending": 1, "totalSkipped": 1, "runs": [ { "stats": { "suites": 5, "tests": 6, "passes": 1, "pending": 1, "skipped": 1, "failures": 3, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 5, "tests": 5, "passes": 1, "pending": 1, "failures": 3, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n throw new Error('fail1');\n }" }, { "hookName": "after each", "title": [ "\"after each\" hook" ], "body": "function () {\n throw new Error('fail2');\n }" }, { "hookName": "after all", "title": [ "\"after all\" hook" ], "body": "function () {\n throw new Error('fail3');\n }" } ], "tests": [ { "title": [ "simple failing hook spec", "beforeEach hooks", "never gets here" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 4, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 2 | context('beforeEach hooks', () => {\n 3 | beforeEach(() => {\n> 4 | throw new Error('fail1')\n | ^\n 5 | })\n 6 | \n 7 | it('never gets here', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- beforeEach hooks -- never gets here -- before each hook (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing hook spec", "pending", "is pending" ], "state": "pending", "body": "", "displayError": null, "attempts": [ { "state": "pending", "error": null, "videoTimestamp": null, "duration": null, "startedAt": null, "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "afterEach hooks", "runs this" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 16, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 14 | context('afterEach hooks', () => {\n 15 | afterEach(() => {\n> 16 | throw new Error('fail2')\n | ^\n 17 | })\n 18 | \n 19 | it('runs this', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- afterEach hooks -- runs this -- after each hook (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing hook spec", "afterEach hooks", "does not run this" ], "state": "skipped", "body": "function () {}", "displayError": null, "attempts": [ { "state": "skipped", "error": null, "videoTimestamp": null, "duration": null, "startedAt": null, "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "after hooks", "runs this" ], "state": "passed", "body": "function () {}", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "after hooks", "fails on this" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 26, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 24 | context('after hooks', () => {\n 25 | after(() => {\n> 26 | throw new Error('fail3')\n | ^\n 27 | })\n 28 | \n 29 | it('runs this', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- after hooks -- fails on this -- after all hook (failed).png", "height": 720, "width": 1280 } ] } ] } ], "error": null, "video": null, "spec": { "name": "simple_failing_hook_spec.js", "relative": "cypress/integration/simple_failing_hook_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 2, "passes": 0, "pending": 0, "skipped": 0, "failures": 2, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 2, "passes": 0, "pending": 0, "failures": 2, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [], "tests": [ { "title": [ "simple failing spec", "fails1" ], "state": "failed", "body": "function () {\n cy.wrap(true, {\n timeout: 100\n }).should('be.false');\n }", "displayError": "AssertionError: Timed out retrying after 100ms: expected true to be false\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "AssertionError", "message": "Timed out retrying after 100ms: expected true to be false", "stack": "[stack trace lines]", "codeFrame": { "line": 4, "column": 37, "originalFile": "cypress/integration/simple_failing_spec.js", "relativeFile": "cypress/integration/simple_failing_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "frame": " 2 | describe('simple failing spec', () => {\n 3 | it('fails1', () => {\n> 4 | cy.wrap(true, { timeout: 100 }).should('be.false')\n | ^\n 5 | })\n 6 | \n 7 | it('fails2', () => {", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_spec.js/simple failing spec -- fails1 (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing spec", "fails2" ], "state": "failed", "body": "function () {\n throw new Error('fails2');\n }", "displayError": "Error: fails2\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fails2", "stack": "[stack trace lines]", "codeFrame": { "line": 8, "column": 11, "originalFile": "cypress/integration/simple_failing_spec.js", "relativeFile": "cypress/integration/simple_failing_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "frame": " 6 | \n 7 | it('fails2', () => {\n> 8 | throw new Error('fails2')\n | ^\n 9 | })\n 10 | })\n 11 | ", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_spec.js/simple failing spec -- fails2 (failed).png", "height": 720, "width": 1280 } ] } ] } ], "error": null, "video": null, "spec": { "name": "simple_failing_spec.js", "relative": "cypress/integration/simple_failing_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 3, "passes": 3, "pending": 0, "skipped": 0, "failures": 0, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 3, "passes": 3, "pending": 0, "failures": 0, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before all", "title": [ "\"before all\" hook" ], "body": "function () {\n cy.wait(100);\n }" }, { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n cy.wait(200);\n }" }, { "hookName": "after each", "title": [ "\"after each\" hook" ], "body": "function () {\n cy.wait(200);\n }" }, { "hookName": "after all", "title": [ "\"after all\" hook" ], "body": "function () {\n cy.wait(100);\n }" } ], "tests": [ { "title": [ "simple hooks spec", "t1" ], "state": "passed", "body": "function () {\n cy.wrap('t1').should('eq', 't1');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple hooks spec", "t2" ], "state": "passed", "body": "function () {\n cy.wrap('t2').should('eq', 't2');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple hooks spec", "t3" ], "state": "passed", "body": "function () {\n cy.wrap('t3').should('eq', 't3');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] } ], "error": null, "video": null, "spec": { "name": "simple_hooks_spec.js", "relative": "cypress/integration/simple_hooks_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_hooks_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 1, "passes": 1, "pending": 0, "skipped": 0, "failures": 0, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 1, "passes": 1, "pending": 0, "failures": 0, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n cy.wait(1000);\n }" } ], "tests": [ { "title": [ "simple passing spec", "passes" ], "state": "passed", "body": "function () {\n cy.wrap(true).should('be.true');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] } ], "error": null, "video": null, "spec": { "name": "simple_passing_spec.js", "relative": "cypress/integration/simple_passing_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_passing_spec.js", "specType": "integration" }, "shouldUploadVideo": true } ], "browserPath": "path/to/browser", "browserName": "FooBrowser", "browserVersion": "88", "osName": "FooOS", "osVersion": "1234", "cypressVersion": "9.9.9", "config": {}, "status": "finished" } exports['e2e spec_isolation fails [chrome] 1'] = { "startedTestsAt": "2018-02-01T20:14:19.323Z", "endedTestsAt": "2018-02-01T20:14:19.323Z", "totalDuration": 5555, "totalSuites": 8, "totalTests": 12, "totalFailed": 5, "totalPassed": 5, "totalPending": 1, "totalSkipped": 1, "runs": [ { "stats": { "suites": 5, "tests": 6, "passes": 1, "pending": 1, "skipped": 1, "failures": 3, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 5, "tests": 5, "passes": 1, "pending": 1, "failures": 3, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n throw new Error('fail1');\n }" }, { "hookName": "after each", "title": [ "\"after each\" hook" ], "body": "function () {\n throw new Error('fail2');\n }" }, { "hookName": "after all", "title": [ "\"after all\" hook" ], "body": "function () {\n throw new Error('fail3');\n }" } ], "tests": [ { "title": [ "simple failing hook spec", "beforeEach hooks", "never gets here" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 4, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 2 | context('beforeEach hooks', () => {\n 3 | beforeEach(() => {\n> 4 | throw new Error('fail1')\n | ^\n 5 | })\n 6 | \n 7 | it('never gets here', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- beforeEach hooks -- never gets here -- before each hook (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing hook spec", "pending", "is pending" ], "state": "pending", "body": "", "displayError": null, "attempts": [ { "state": "pending", "error": null, "videoTimestamp": null, "duration": null, "startedAt": null, "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "afterEach hooks", "runs this" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail2\n\nBecause this error occurred during a `after each` hook we are skipping the remaining tests in the current suite: `afterEach hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 16, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 14 | context('afterEach hooks', () => {\n 15 | afterEach(() => {\n> 16 | throw new Error('fail2')\n | ^\n 17 | })\n 18 | \n 19 | it('runs this', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- afterEach hooks -- runs this -- after each hook (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing hook spec", "afterEach hooks", "does not run this" ], "state": "skipped", "body": "function () {}", "displayError": null, "attempts": [ { "state": "skipped", "error": null, "videoTimestamp": null, "duration": null, "startedAt": null, "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "after hooks", "runs this" ], "state": "passed", "body": "function () {}", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "after hooks", "fails on this" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail3\n\nBecause this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `after hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 26, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 24 | context('after hooks', () => {\n 25 | after(() => {\n> 26 | throw new Error('fail3')\n | ^\n 27 | })\n 28 | \n 29 | it('runs this', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- after hooks -- fails on this -- after all hook (failed).png", "height": 720, "width": 1280 } ] } ] } ], "error": null, "video": null, "spec": { "name": "simple_failing_hook_spec.js", "relative": "cypress/integration/simple_failing_hook_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 2, "passes": 0, "pending": 0, "skipped": 0, "failures": 2, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 2, "passes": 0, "pending": 0, "failures": 2, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [], "tests": [ { "title": [ "simple failing spec", "fails1" ], "state": "failed", "body": "function () {\n cy.wrap(true, {\n timeout: 100\n }).should('be.false');\n }", "displayError": "AssertionError: Timed out retrying after 100ms: expected true to be false\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "AssertionError", "message": "Timed out retrying after 100ms: expected true to be false", "stack": "[stack trace lines]", "codeFrame": { "line": 4, "column": 37, "originalFile": "cypress/integration/simple_failing_spec.js", "relativeFile": "cypress/integration/simple_failing_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "frame": " 2 | describe('simple failing spec', () => {\n 3 | it('fails1', () => {\n> 4 | cy.wrap(true, { timeout: 100 }).should('be.false')\n | ^\n 5 | })\n 6 | \n 7 | it('fails2', () => {", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_spec.js/simple failing spec -- fails1 (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing spec", "fails2" ], "state": "failed", "body": "function () {\n throw new Error('fails2');\n }", "displayError": "Error: fails2\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fails2", "stack": "[stack trace lines]", "codeFrame": { "line": 8, "column": 11, "originalFile": "cypress/integration/simple_failing_spec.js", "relativeFile": "cypress/integration/simple_failing_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "frame": " 6 | \n 7 | it('fails2', () => {\n> 8 | throw new Error('fails2')\n | ^\n 9 | })\n 10 | })\n 11 | ", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_spec.js/simple failing spec -- fails2 (failed).png", "height": 720, "width": 1280 } ] } ] } ], "error": null, "video": null, "spec": { "name": "simple_failing_spec.js", "relative": "cypress/integration/simple_failing_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 3, "passes": 3, "pending": 0, "skipped": 0, "failures": 0, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 3, "passes": 3, "pending": 0, "failures": 0, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before all", "title": [ "\"before all\" hook" ], "body": "function () {\n cy.wait(100);\n }" }, { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n cy.wait(200);\n }" }, { "hookName": "after each", "title": [ "\"after each\" hook" ], "body": "function () {\n cy.wait(200);\n }" }, { "hookName": "after all", "title": [ "\"after all\" hook" ], "body": "function () {\n cy.wait(100);\n }" } ], "tests": [ { "title": [ "simple hooks spec", "t1" ], "state": "passed", "body": "function () {\n cy.wrap('t1').should('eq', 't1');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple hooks spec", "t2" ], "state": "passed", "body": "function () {\n cy.wrap('t2').should('eq', 't2');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] }, { "title": [ "simple hooks spec", "t3" ], "state": "passed", "body": "function () {\n cy.wrap('t3').should('eq', 't3');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] } ], "error": null, "video": null, "spec": { "name": "simple_hooks_spec.js", "relative": "cypress/integration/simple_hooks_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_hooks_spec.js", "specType": "integration" }, "shouldUploadVideo": true }, { "stats": { "suites": 1, "tests": 1, "passes": 1, "pending": 0, "skipped": 0, "failures": 0, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 1, "tests": 1, "passes": 1, "pending": 0, "failures": 0, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n cy.wait(1000);\n }" } ], "tests": [ { "title": [ "simple passing spec", "passes" ], "state": "passed", "body": "function () {\n cy.wrap(true).should('be.true');\n }", "displayError": null, "attempts": [ { "state": "passed", "error": null, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [] } ] } ], "error": null, "video": null, "spec": { "name": "simple_passing_spec.js", "relative": "cypress/integration/simple_passing_spec.js", "absolute": "/foo/bar/.projects/e2e/cypress/integration/simple_passing_spec.js", "specType": "integration" }, "shouldUploadVideo": true } ], "browserPath": "path/to/browser", "browserName": "FooBrowser", "browserVersion": "88", "osName": "FooOS", "osVersion": "1234", "cypressVersion": "9.9.9", "config": {}, "status": "finished" } exports['e2e spec_isolation fails [firefox] 1'] = { "startedTestsAt": "2018-02-01T20:14:19.323Z", "endedTestsAt": "2018-02-01T20:14:19.323Z", "totalDuration": 5555, "totalSuites": 8, "totalTests": 12, "totalFailed": 5, "totalPassed": 5, "totalPending": 1, "totalSkipped": 1, "runs": [ { "stats": { "suites": 5, "tests": 6, "passes": 1, "pending": 1, "skipped": 1, "failures": 3, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "endedAt": "2018-02-01T20:14:19.323Z" }, "reporter": "spec", "reporterStats": { "suites": 5, "tests": 5, "passes": 1, "pending": 1, "failures": 3, "start": "2018-02-01T20:14:19.323Z", "end": "2018-02-01T20:14:19.323Z", "duration": 1234 }, "hooks": [ { "hookName": "before each", "title": [ "\"before each\" hook" ], "body": "function () {\n throw new Error('fail1');\n }" }, { "hookName": "after each", "title": [ "\"after each\" hook" ], "body": "function () {\n throw new Error('fail2');\n }" }, { "hookName": "after all", "title": [ "\"after all\" hook" ], "body": "function () {\n throw new Error('fail3');\n }" } ], "tests": [ { "title": [ "simple failing hook spec", "beforeEach hooks", "never gets here" ], "state": "failed", "body": "function () {}", "displayError": "Error: fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`\n [stack trace lines]", "attempts": [ { "state": "failed", "error": { "name": "Error", "message": "fail1\n\nBecause this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `beforeEach hooks`", "stack": "[stack trace lines]", "codeFrame": { "line": 4, "column": 13, "originalFile": "cypress/integration/simple_failing_hook_spec.js", "relativeFile": "cypress/integration/simple_failing_hook_spec.js", "absoluteFile": "/foo/bar/.projects/e2e/cypress/integration/simple_failing_hook_spec.js", "frame": " 2 | context('beforeEach hooks', () => {\n 3 | beforeEach(() => {\n> 4 | throw new Error('fail1')\n | ^\n 5 | })\n 6 | \n 7 | it('never gets here', () => {})", "language": "js" } }, "videoTimestamp": null, "duration": 1234, "startedAt": "2018-02-01T20:14:19.323Z", "screenshots": [ { "name": null, "takenAt": "2018-02-01T20:14:19.323Z", "path": "/foo/bar/.projects/e2e/cypress/screenshots/simple_failing_hook_spec.js/simple failing hook spec -- beforeEach hooks -- never gets here -- before each hook (failed).png", "height": 720, "width": 1280 } ] } ] }, { "title": [ "simple failing hook spec", "pending", "is pending" ], "state": "pending", "body": "", "displayError": null, "attempts": [ { "state": "pending", "error": null, "videoTimestamp": null, "duration": null, "startedAt": null, "screenshots": [] } ] }, { "title": [ "simple failing hook spec", "afterEach hooks", "runs this" ], "state": "failed", "body": "function () {}", "displayError": "Error: fai