-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: report results correctly when the browser crashes mid-test #27786
Conversation
6 flaky tests on run #51513 ↗︎
Details:
commands/net_stubbing.cy.ts • 3 flaky tests • 5x-driver-webkitcypress/cypress.cy.js • 3 flaky tests • 5x-driver-webkit
Review all test suite changes for PR #27786 ↗︎ |
@@ -376,7 +376,6 @@ export class ProjectBase extends EE { | |||
}, | |||
|
|||
onMocha: async (event, runnable) => { | |||
debug('onMocha', event) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this debug too spammy?
import type { Browser } from '../browsers/types' | ||
import * as printResults from '../util/print-run' | ||
import type { ProtocolManager } from '../cloud/protocol' | ||
import { telemetry } from '@packages/telemetry' | ||
import { CypressRunResult, createPublicBrowser, createPublicConfig, createPublicRunResults, createPublicSpec, createPublicSpecResults } from './results' | ||
import { EarlyExitTerminator } from '../util/graceful_crash_handling' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
This reports on tests that cannot be completed, focusing on the scenario where the browser renderer crashes during a test run. Reporting test runs correctly even when a spec causes the browser to crash is required to support test replay on those specs.
To this end, it:
Future work, either on this branch or others, will include additional handling for various other scenarios where tests cannot be run.
Steps to test
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?